mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Fix fish syntax error at else
This commit is contained in:
parent
f0c400b669
commit
c2b5bbd19a
|
|
@ -33,17 +33,20 @@ fi
|
|||
|
||||
case "$shell" in
|
||||
fish )
|
||||
echo " setenv PYENV_DEACTIVATE \"\$VIRTUAL_ENV\";"
|
||||
cat <<EOS
|
||||
setenv PYENV_DEACTIVATE "\$VIRTUAL_ENV";
|
||||
deactivate;
|
||||
else;
|
||||
EOS
|
||||
;;
|
||||
* )
|
||||
echo " export PYENV_DEACTIVATE=\"\$VIRTUAL_ENV\";"
|
||||
;;
|
||||
esac
|
||||
|
||||
cat <<EOS
|
||||
cat <<EOS
|
||||
export PYENV_DEACTIVATE="\$VIRTUAL_ENV";
|
||||
deactivate;
|
||||
else
|
||||
EOS
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$QUIET" ]; then
|
||||
echo " echo \"pyenv-virtualenv: no virtualenv has been activated.\" 1>&2;"
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ EOS
|
|||
if functions -q deactivate
|
||||
setenv PYENV_DEACTIVATE "\$VIRTUAL_ENV";
|
||||
deactivate;
|
||||
else
|
||||
else;
|
||||
echo "pyenv-virtualenv: no virtualenv has been activated." 1>&2;
|
||||
false;
|
||||
end;
|
||||
|
|
@ -101,7 +101,7 @@ EOS
|
|||
if functions -q deactivate
|
||||
setenv PYENV_DEACTIVATE "\$VIRTUAL_ENV";
|
||||
deactivate;
|
||||
else
|
||||
else;
|
||||
false;
|
||||
end;
|
||||
EOS
|
||||
|
|
@ -118,7 +118,7 @@ if functions -q deactivate
|
|||
pyenv shell --unset;
|
||||
setenv PYENV_DEACTIVATE "\$VIRTUAL_ENV";
|
||||
deactivate;
|
||||
else
|
||||
else;
|
||||
echo "pyenv-virtualenv: no virtualenv has been activated." 1>&2;
|
||||
false;
|
||||
end;
|
||||
|
|
@ -136,7 +136,7 @@ if functions -q deactivate
|
|||
pyenv shell --unset;
|
||||
setenv PYENV_DEACTIVATE "\$VIRTUAL_ENV";
|
||||
deactivate;
|
||||
else
|
||||
else;
|
||||
false;
|
||||
end;
|
||||
EOS
|
||||
|
|
|
|||
Loading…
Reference in a new issue