From: Thanh Ha Date: Thu, 1 Feb 2018 18:15:04 +0000 (-0500) Subject: Disable unbound variable checking for activate X-Git-Tag: v0.16.0~14 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F8636%2F1;p=releng%2Fglobal-jjb.git 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 --- 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 }