mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Add rbenv local --unset
This commit is contained in:
parent
e5c0fd22e1
commit
6fa81ef28d
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ set -e
|
|||
RBENV_VERSION="$1"
|
||||
RBENV_VERSION_FILE=".rbenv-version"
|
||||
|
||||
if [ -n "$RBENV_VERSION" ]; then
|
||||
if [ "$RBENV_VERSION" = "--unset" ]; then
|
||||
rm -f "$RBENV_VERSION_FILE"
|
||||
elif [ -n "$RBENV_VERSION" ]; then
|
||||
rbenv-version-file-write "$RBENV_VERSION_FILE" "$RBENV_VERSION"
|
||||
else
|
||||
rbenv-version-file-read "$RBENV_VERSION_FILE" ||
|
||||
|
|
Loading…
Reference in a new issue