mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-23 06:53:13 +00:00
Clarify that .rbenv-version is removed when migrating
This commit is contained in:
parent
377b176260
commit
919c4240fc
1 changed files with 3 additions and 1 deletions
|
@ -38,8 +38,10 @@ if [ "$RBENV_VERSION" = "--unset" ]; then
|
||||||
rm -f .ruby-version .rbenv-version
|
rm -f .ruby-version .rbenv-version
|
||||||
elif [ -n "$RBENV_VERSION" ]; then
|
elif [ -n "$RBENV_VERSION" ]; then
|
||||||
if [ "$(RBENV_VERSION= rbenv-version-origin)" -ef .rbenv-version ]; then
|
if [ "$(RBENV_VERSION= rbenv-version-origin)" -ef .rbenv-version ]; then
|
||||||
echo "rbenv: migrated .rbenv-version file to .ruby-version" >&2
|
|
||||||
rm -f .rbenv-version
|
rm -f .rbenv-version
|
||||||
|
{ echo "rbenv: removed existing \`.rbenv-version' file and migrated"
|
||||||
|
echo " local version specification to \`.ruby-version' file"
|
||||||
|
} >&2
|
||||||
fi
|
fi
|
||||||
rbenv-version-file-write .ruby-version "$RBENV_VERSION"
|
rbenv-version-file-write .ruby-version "$RBENV_VERSION"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue