if [ pyenv deactivate --no-error --verbose ] is not bourne shell compatible

This commit is contained in:
Pedro Algarvio
2014-08-13 03:40:02 +01:00
parent 2662b5807c
commit 3ebb00414f

View File

@@ -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