mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-29 03:02:51 -05: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() {
|
find_local_version_file() {
|
||||||
local root="$1"
|
local root="$1"
|
||||||
while [ -n "$root" ]; do
|
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"
|
echo "${root}/.rbenv-version"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue