mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
parent
e548877ead
commit
1f7722088d
1 changed files with 7 additions and 4 deletions
|
@ -23,10 +23,13 @@ fi
|
|||
|
||||
if [ "$version" = "--unset" ]; then
|
||||
echo "unset RBENV_VERSION"
|
||||
exit 1
|
||||
exit
|
||||
fi
|
||||
|
||||
# Make sure the specified version is installed.
|
||||
rbenv-prefix "$version" >/dev/null
|
||||
|
||||
echo "export RBENV_VERSION=\"${version}\""
|
||||
if rbenv-prefix "$version" >/dev/null; then
|
||||
echo "export RBENV_VERSION=\"${version}\""
|
||||
else
|
||||
echo "return 1"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue