mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
rbenv-path -> rbenv-prefix
This commit is contained in:
parent
735a2bc4e7
commit
86362408f1
3 changed files with 5 additions and 5 deletions
|
@ -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"
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue