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

Merge pull request #1003 from blueyed/version-file-skip-dirs

rbenv-version-file: ensure that the version file is a file
This commit is contained in:
Mislav Marohnić
2017-11-29 15:23:58 +01:00
committed by GitHub

View File

@@ -9,7 +9,7 @@ target_dir="$1"
find_local_version_file() {
local root="$1"
while ! [[ "$root" =~ ^//[^/]*$ ]]; do
if [ -e "${root}/.ruby-version" ]; then
if [ -f "${root}/.ruby-version" ]; then
echo "${root}/.ruby-version"
return 0
fi