mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
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.
This commit is contained in:
parent
0d502f2272
commit
6d59599676
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue