diff options
-rwxr-xr-x | tools/test-setup-docker.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/test-setup-docker.sh b/tools/test-setup-docker.sh index 81f4b2977..a0fcf9f5a 100755 --- a/tools/test-setup-docker.sh +++ b/tools/test-setup-docker.sh @@ -8,7 +8,11 @@ # environment. set -xeu -ROOTCMD=${ROOTCMD:-} + +# Default ROOTCMD to the 'env' command, otherwise variable assignments will be +# interpreted as command when no ROOTCMD is given. The reason for that is +# Bash's simple command expansion. +ROOTCMD=${ROOTCMD:-env} cd $(dirname $0) SCRIPT_DIR="$(pwd)" |