mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 20:23:41 +00:00
Prefer .ruby-version to .rbenv-version for reading local versions
This commit is contained in:
parent
4b6c91e827
commit
b974bf54dc
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@ set -e
|
|||
find_local_version_file() {
|
||||
local root="$1"
|
||||
while [ -n "$root" ]; do
|
||||
if [ -e "${root}/.rbenv-version" ]; then
|
||||
if [ -e "${root}/.ruby-version" ]; then
|
||||
echo "${root}/.ruby-version"
|
||||
exit
|
||||
elif [ -e "${root}/.rbenv-version" ]; then
|
||||
echo "${root}/.rbenv-version"
|
||||
exit
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue