mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 14:23:53 -05:00
Prefer .ruby-version to .rbenv-version for reading local versions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user