mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 06:43:53 -05:00
Global version file is now ${RBENV_ROOT}/version
This is the last time it'll change. Promise.
This commit is contained in:
@@ -9,12 +9,13 @@ if [ "$1" = "--complete" ]; then
|
||||
fi
|
||||
|
||||
RBENV_VERSION="$1"
|
||||
RBENV_VERSION_FILE="${RBENV_ROOT}/global"
|
||||
RBENV_VERSION_FILE="${RBENV_ROOT}/version"
|
||||
|
||||
if [ -n "$RBENV_VERSION" ]; then
|
||||
rbenv-version-file-write "$RBENV_VERSION_FILE" "$RBENV_VERSION"
|
||||
else
|
||||
rbenv-version-file-read "$RBENV_VERSION_FILE" ||
|
||||
rbenv-version-file-read "${RBENV_ROOT}/global" ||
|
||||
rbenv-version-file-read "${RBENV_ROOT}/default" ||
|
||||
echo system
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user