mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 06:43:53 -05:00
Support install locations other than $HOME/.rbenv.
Define RBENV_HOME env variable in libexec/rbenv and let all script delegates use this variable to determine rbenv's install location.
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
set -e
|
||||
|
||||
RBENV_VERSION="$1"
|
||||
RBENV_VERSION_FILE="${HOME}/.rbenv/global"
|
||||
RBENV_VERSION_FILE="${RBENV_HOME}/global"
|
||||
|
||||
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 "${HOME}/.rbenv/default" ||
|
||||
rbenv-version-file-read "${RBENV_HOME}/default" ||
|
||||
echo system
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user