summaryrefslogtreecommitdiffstats
path: root/xci/infra/bifrost/scripts/bifrost-provision.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xci/infra/bifrost/scripts/bifrost-provision.sh')
-rwxr-xr-xxci/infra/bifrost/scripts/bifrost-provision.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/infra/bifrost/scripts/bifrost-provision.sh b/xci/infra/bifrost/scripts/bifrost-provision.sh
index 95854e90..f653a2fd 100755
--- a/xci/infra/bifrost/scripts/bifrost-provision.sh
+++ b/xci/infra/bifrost/scripts/bifrost-provision.sh
@@ -102,7 +102,7 @@ fi
# Install missing dependencies. Use sudo since for bifrost jobs
# the venv is not ready yet.
-[[ -n ${VIRTUAL_ENV} ]] && _sudo="" || sudo="sudo -H -E"
+[[ -n ${VIRTUAL_ENV:-} ]] && _sudo="" || _sudo="sudo -H -E"
${_sudo} pip install -q --upgrade -r "$(dirname $0)/../requirements.txt"
# Change working directory