X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcommon-variables.sh;h=346eb727eb51f45819b1b7852982c2965eb120dd;hb=e1a8dc64cfe10360ebdcadd28806adf800760ce7;hp=7bbc36feaaff9a5499646b067597c8861f99dc5e;hpb=cc00605631e750be1698bd247442172c483a7e9b;p=releng%2Fglobal-jjb.git diff --git a/shell/common-variables.sh b/shell/common-variables.sh index 7bbc36fe..346eb727 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. @@ -8,7 +8,7 @@ # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## - +echo "---> common-variables.sh" # This file contains a list of variables that are generally useful in many # scripts. It is meant to be sourced in other scripts so that the variables can # be called. @@ -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 }