1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 06:13:53 -05:00

Prefer .ruby-version to .rbenv-version for reading local versions

This commit is contained in:
Sam Stephenson
2012-12-30 18:35:08 -06:00
parent 4b6c91e827
commit b974bf54dc

View File

@@ -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