Add semicolon for the deactivate scripts for non-fish

This commit is contained in:
Yamashita Yuu
2014-06-02 16:01:39 +09:00
parent b9e2fc6acb
commit 26f2004abb
2 changed files with 2 additions and 2 deletions

View File

@@ -12,6 +12,6 @@ set -e
shell="$(basename "${PYENV_SHELL:-$SHELL}")" shell="$(basename "${PYENV_SHELL:-$SHELL}")"
case "$shell" in case "$shell" in
fish ) echo "functions -q deactivate; and deactivate;";; fish ) echo "functions -q deactivate; and deactivate;";;
* ) echo "declare -f deactivate 1>/dev/null 2>&1 && deactivate";; * ) echo "declare -f deactivate 1>/dev/null 2>&1 && deactivate;";;
esac esac
echo "pyenv shell --unset" echo "pyenv shell --unset"

View File

@@ -11,7 +11,7 @@ setup() {
assert_success assert_success
assert_output <<EOS assert_output <<EOS
declare -f deactivate 1>/dev/null 2>&1 && deactivate declare -f deactivate 1>/dev/null 2>&1 && deactivate;
pyenv shell --unset pyenv shell --unset
EOS EOS
} }