1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 15:23:53 -05:00

Merge pull request #1243 from scop/nounset

Make work in set -u (nounset) mode
This commit is contained in:
Mislav Marohnić
2021-05-06 00:13:20 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ load test_helper
RBENV_SHELL=bash run rbenv-sh-shell --unset
assert_success
assert_output <<OUT
RBENV_VERSION_OLD="\$RBENV_VERSION"
RBENV_VERSION_OLD="\${RBENV_VERSION-}"
unset RBENV_VERSION
OUT
}
@@ -75,7 +75,7 @@ SH
RBENV_SHELL=bash run rbenv-sh-shell 1.2.3
assert_success
assert_output <<OUT
RBENV_VERSION_OLD="\$RBENV_VERSION"
RBENV_VERSION_OLD="\${RBENV_VERSION-}"
export RBENV_VERSION="1.2.3"
OUT
}