diff --git a/bin/run.sh b/bin/run.sh index 75455a99d5abaf842aa40b7c9dbacf37614e62b8..1bbf7fee38c09bc969e41146c5b0cc67b8acac1a 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -7,13 +7,12 @@ cd "$( dirname "${BASH_SOURCE[0]}" )/.." echo() { builtin echo "[SCITRAN] $@"; } + if [ "$#" -eq 1 ]; then - TEMP_ENV_FILE=$(mktemp -t scitran_env) - env > $TEMP_ENV_FILE + EXISTING_ENV=$(env | grep "SCITRAN_" | cat) set -o allexport source "$1" - source $TEMP_ENV_FILE - rm -f $TEMP_ENV_FILE + eval "$EXISTING_ENV" set +o allexport fi if [ "$#" -gt 1 ]; then