mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -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
|
||||
|
||||
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