mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-14 06:23:52 -05:00
if [ pyenv deactivate --no-error --verbose ] is not bourne shell compatible
This commit is contained in:
@@ -115,7 +115,7 @@ if [[ "$shell" != "fish" ]]; then
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ "\$PYENV_ACTIVATE" != "\$(pyenv prefix)" ]; then
|
if [ "\$PYENV_ACTIVATE" != "\$(pyenv prefix)" ]; then
|
||||||
if [ pyenv deactivate --no-error --verbose ]; then
|
if pyenv deactivate --no-error --verbose; then
|
||||||
pyenv activate --no-error --verbose || unset PYENV_DEACTIVATE
|
pyenv activate --no-error --verbose || unset PYENV_DEACTIVATE
|
||||||
else
|
else
|
||||||
pyenv activate --no-error --verbose
|
pyenv activate --no-error --verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user