From 1f02269143fda3e22bd11650e1001e8f7c93afee Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 1 Feb 2018 13:15:04 -0500 Subject: [PATCH] Disable unbound variable checking for activate virtualenv activate contains unbound variables so must be disabled when calling `source activate`. Change-Id: I8af6b55962580778fbb349c8164f661c4c462928 Signed-off-by: Thanh Ha --- shell/common-variables.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/common-variables.sh b/shell/common-variables.sh index 7bbc36fe..6a5d2fb0 100644 --- a/shell/common-variables.sh +++ b/shell/common-variables.sh @@ -24,6 +24,8 @@ echo "$MAVEN_OPTIONS" # Activates the lftools virtualenv lftools_activate() { virtualenv --quiet "/tmp/v/lftools" + set +u # Ignore unbound variables in activate # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 source "/tmp/v/lftools/bin/activate" + set -u # Restore unbound variable checking } -- 2.16.6