mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
rbenv-version-file: ensure that the version file is a file
Forwarded from https://github.com/pyenv/pyenv/pull/606.
This commit is contained in:
parent
755c820724
commit
95b1b05cbe
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ target_dir="$1"
|
||||||
find_local_version_file() {
|
find_local_version_file() {
|
||||||
local root="$1"
|
local root="$1"
|
||||||
while ! [[ "$root" =~ ^//[^/]*$ ]]; do
|
while ! [[ "$root" =~ ^//[^/]*$ ]]; do
|
||||||
if [ -e "${root}/.ruby-version" ]; then
|
if [ -f "${root}/.ruby-version" ]; then
|
||||||
echo "${root}/.ruby-version"
|
echo "${root}/.ruby-version"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue