Browse Source

rbenv-version-file: ensure that the version file is a file

Forwarded from https://github.com/pyenv/pyenv/pull/606.
pull/1133/head
Daniel Hahler 9 years ago
parent
commit
95b1b05cbe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libexec/rbenv-version-file

+ 1
- 1
libexec/rbenv-version-file 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

Loading…
Cancel
Save