diff --git a/run.sh b/run.sh index c8a2d6a..94767df 100755 --- a/run.sh +++ b/run.sh @@ -35,10 +35,24 @@ run_embark () { "30303:30303" "-v" "${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 run_opts=( "${run_opts[@]}" "--rm" ) fi