mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 14:23:53 -05:00
Have rbenv local read version from parent directories as well
Fixes #807
This commit is contained in:
@@ -47,9 +47,10 @@ elif [ -n "$RBENV_VERSION" ]; then
|
||||
} >&2
|
||||
fi
|
||||
else
|
||||
rbenv-version-file-read .ruby-version ||
|
||||
rbenv-version-file-read .rbenv-version ||
|
||||
{ echo "rbenv: no local version configured for this directory"
|
||||
if version_file="$(rbenv-version-file "$PWD")"; then
|
||||
rbenv-version-file-read "$version_file"
|
||||
else
|
||||
echo "rbenv: no local version configured for this directory" >&2
|
||||
exit 1
|
||||
} >&2
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user