X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcommon-variables.sh;h=2b74fa5d8c58ad434987c8b61ba6f80b611a4a8b;hb=808efc4efb54ec63105aa67a4c82c7245f5180ad;hp=7bbc36feaaff9a5499646b067597c8861f99dc5e;hpb=7ff047e6606b384cd84cd6dbc5bea3d93e29357f;p=releng%2Fglobal-jjb.git diff --git a/shell/common-variables.sh b/shell/common-variables.sh index 7bbc36fe..2b74fa5d 100644 --- a/shell/common-variables.sh +++ b/shell/common-variables.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -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 }