Add rbenv local --unset

This commit is contained in:
Sam Stephenson 2011-09-11 10:16:22 -05:00
parent e5c0fd22e1
commit 6fa81ef28d

View file

@ -4,7 +4,9 @@ set -e
RBENV_VERSION="$1" RBENV_VERSION="$1"
RBENV_VERSION_FILE=".rbenv-version" 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" rbenv-version-file-write "$RBENV_VERSION_FILE" "$RBENV_VERSION"
else else
rbenv-version-file-read "$RBENV_VERSION_FILE" || rbenv-version-file-read "$RBENV_VERSION_FILE" ||