From 6d595996766841766b4a0e0559bfb49231cf73ad Mon Sep 17 00:00:00 2001 From: rallytime Date: Thu, 10 May 2018 16:16:17 -0400 Subject: [PATCH] Fix the variable ref from #803 The version of shellcheck that was previously running on bootstrap PRs was out of date and not catching the fact that the VIRTUAL_ENV variable didn't exist. That variable should be _VIRTUALENV_DIR instead. --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 04f8caf..44e981b 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2394,7 +2394,7 @@ __create_virtualenv() { __activate_virtualenv() { set +o nounset # Is virtualenv empty - if [ -z "$VIRTUAL_ENV" ]; then + if [ -z "$_VIRTUALENV_DIR" ]; then __create_virtualenv || return 1 # shellcheck source=/dev/null . "${_VIRTUALENV_DIR}/bin/activate" || return 1