From 3ebb00414fe7976465fa9a12011e664d78344a2e Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 13 Aug 2014 03:40:02 +0100 Subject: [PATCH] `if [ pyenv deactivate --no-error --verbose ]` is not bourne shell compatible --- bin/pyenv-virtualenv-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv-init b/bin/pyenv-virtualenv-init index 5016537..1ab8edb 100755 --- a/bin/pyenv-virtualenv-init +++ b/bin/pyenv-virtualenv-init @@ -115,7 +115,7 @@ if [[ "$shell" != "fish" ]]; then return 0 fi 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 else pyenv activate --no-error --verbose