From ad0fa8232918fac827b39f52ffc2bb475c029dff Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Tue, 16 Dec 2014 23:04:35 +0900 Subject: [PATCH] Fix broken fish test (#60) --- test/init.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/init.bats b/test/init.bats index 7b3c997..c50535d 100644 --- a/test/init.bats +++ b/test/init.bats @@ -64,12 +64,12 @@ EOS setenv PYENV_VIRTUALENV_INIT 1; function _pyenv_virtualenv_hook --on-event fish_prompt; if [ -n "\$PYENV_ACTIVATE" ] - if [ (pyenv version-name 2>/dev/null || true) = "system" ] + if [ (pyenv version-name 2>/dev/null; or true) = "system" ] pyenv deactivate --no-error --verbose set -e PYENV_DEACTIVATE return 0 end - if [ "\$PYENV_ACTIVATE" != (pyenv prefix 2>/dev/null || true) ] + if [ "\$PYENV_ACTIVATE" != (pyenv prefix 2>/dev/null; or true) ] if pyenv deactivate --no-error --verbose set -e PYENV_DEACTIVATE pyenv activate --no-error --verbose; or set -e PYENV_DEACTIVATE @@ -78,7 +78,7 @@ function _pyenv_virtualenv_hook --on-event fish_prompt; end end else - if [ -z "\$VIRTUAL_ENV" ]; and [ "\$PYENV_DEACTIVATE" != (pyenv prefix 2>/dev/null || true) ] + if [ -z "\$VIRTUAL_ENV" ]; and [ "\$PYENV_DEACTIVATE" != (pyenv prefix 2>/dev/null; or true) ] pyenv activate --no-error --verbose end end