1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 13:33:45 -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:
Alexander Rinass
2011-08-25 09:24:44 +02:00
parent aade3ad781
commit 5130f0464a
9 changed files with 17 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ if [ "$RBENV_VERSION" = "system" ]; then
exit
fi
RBENV_VERSION_PATH="${HOME}/.rbenv/versions/${RBENV_VERSION}"
RBENV_VERSION_PATH="${RBENV_HOME}/versions/${RBENV_VERSION}"
if [ -d "$RBENV_VERSION_PATH" ]; then
echo "$RBENV_VERSION"