run should forward env vars only if they're defined
This commit is contained in:
parent
08bd3291f5
commit
5b9a0d27a5
18
run.sh
18
run.sh
|
@ -35,10 +35,24 @@ run_embark () {
|
||||||
"30303:30303"
|
"30303:30303"
|
||||||
"-v"
|
"-v"
|
||||||
"${EMBARK_DOCKER_MOUNT_SOURCE}:${EMBARK_DOCKER_MOUNT_TARGET}"
|
"${EMBARK_DOCKER_MOUNT_SOURCE}:${EMBARK_DOCKER_MOUNT_TARGET}"
|
||||||
"-e"
|
|
||||||
"TERM"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ -v LANG ]]; then
|
||||||
|
run_opts=( "${run_opts[@]}" "-e" "LANG" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -v LANGUAGE ]]; then
|
||||||
|
run_opts=( "${run_opts[@]}" "-e" "LANGUAGE" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -v LC_ALL ]]; then
|
||||||
|
run_opts=( "${run_opts[@]}" "-e" "LC_ALL" )
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -v TERM ]]; then
|
||||||
|
run_opts=( "${run_opts[@]}" "-e" "TERM" )
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $EMBARK_DOCKER_RUN_RM = true ]]; then
|
if [[ $EMBARK_DOCKER_RUN_RM = true ]]; then
|
||||||
run_opts=( "${run_opts[@]}" "--rm" )
|
run_opts=( "${run_opts[@]}" "--rm" )
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue