Fix github-maven-merge scm config
[releng/global-jjb.git] / shell / common-variables.sh
index 7bbc36f..2b74fa5 100644 (file)
@@ -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
 }