Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix unbound variable failure
[releng/global-jjb.git]
/
shell
/
jjb-install.sh
diff --git
a/shell/jjb-install.sh
b/shell/jjb-install.sh
index
6eea3ad
..
af2f42c
100644
(file)
--- a/
shell/jjb-install.sh
+++ b/
shell/jjb-install.sh
@@
-11,7
+11,8
@@
echo "---> jjb-install.sh"
# Ensure we fail the job if any steps fail.
echo "---> jjb-install.sh"
# Ensure we fail the job if any steps fail.
-set -eu -o pipefail
+# DO NOT set -u as virtualenv's activate script has unbound variables
+set -e -o pipefail
virtualenv "$WORKSPACE/.virtualenvs/jjb"
# shellcheck source=./.virtualenvs/jjb/bin/activate disable=SC1091
virtualenv "$WORKSPACE/.virtualenvs/jjb"
# shellcheck source=./.virtualenvs/jjb/bin/activate disable=SC1091