Prefer .ruby-version to .rbenv-version for reading local versions
This commit is contained in:
parent
4b6c91e827
commit
b974bf54dc
@ -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…
x
Reference in New Issue
Block a user