mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Adds sh-shell subcommand to unset RBENV_VERSION
This commit is contained in:
parent
39497042bc
commit
555472210b
1 changed files with 8 additions and 1 deletions
|
@ -12,5 +12,12 @@ version=$1
|
|||
if [ -d "$HOME/.rbenv/versions/$version" ]; then
|
||||
echo "export RBENV_VERSION=$version"
|
||||
else
|
||||
echo "rbenv: version \`$version' is not installed" >&2
|
||||
case $version in
|
||||
default|reset)
|
||||
echo "unset RBENV_VERSION"
|
||||
;;
|
||||
*)
|
||||
echo "rbenv: version \`$version' is not installed" >&2
|
||||
exit 1
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue