mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 06:13: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:
@@ -13,7 +13,7 @@ if [ "$RBENV_VERSION" = "system" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
RBENV_PREFIX_PATH="${HOME}/.rbenv/versions/${RBENV_VERSION}"
|
||||
RBENV_PREFIX_PATH="${RBENV_HOME}/versions/${RBENV_VERSION}"
|
||||
if [ ! -d "$RBENV_PREFIX_PATH" ]; then
|
||||
echo "rbenv: version \`${RBENV_VERSION}' not installed" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user