rbenv-path -> rbenv-prefix

This commit is contained in:
Sam Stephenson 2011-08-02 23:11:10 -05:00
parent 735a2bc4e7
commit 86362408f1
3 changed files with 5 additions and 5 deletions

View file

@ -6,10 +6,10 @@ elif [ -z "$RBENV_VERSION" ]; then
RBENV_VERSION="$(rbenv-version)" RBENV_VERSION="$(rbenv-version)"
fi fi
RBENV_VERSION_PATH="${HOME}/.rbenv/versions/${RBENV_VERSION}" RBENV_PREFIX_PATH="${HOME}/.rbenv/versions/${RBENV_VERSION}"
if [ ! -d "$RBENV_VERSION_PATH" ]; then if [ ! -d "$RBENV_PREFIX_PATH" ]; then
echo "rbenv: version \`${RBENV_VERSION}' not installed" >&2 echo "rbenv: version \`${RBENV_VERSION}' not installed" >&2
exit 1 exit 1
fi fi
echo "$RBENV_VERSION_PATH" echo "$RBENV_PREFIX_PATH"

View file

@ -7,6 +7,6 @@ if [ -z "$RBENV_VERSION" ]; then
fi fi
# Make sure the specified version is installed # Make sure the specified version is installed
rbenv-path "$RBENV_VERSION" >/dev/null rbenv-prefix "$RBENV_VERSION" >/dev/null
echo "$RBENV_VERSION" > "${HOME}/.rbenv/default" echo "$RBENV_VERSION" > "${HOME}/.rbenv/default"

View file

@ -7,6 +7,6 @@ if [ -z "$RBENV_VERSION" ]; then
fi fi
# Make sure the specified version is installed # Make sure the specified version is installed
rbenv-path "$RBENV_VERSION" >/dev/null rbenv-prefix "$RBENV_VERSION" >/dev/null
echo "$RBENV_VERSION" > .rbenv-version echo "$RBENV_VERSION" > .rbenv-version