diff --git a/libexec/rbenv-version-file b/libexec/rbenv-version-file index 0ea8d3aa..c0550d64 100755 --- a/libexec/rbenv-version-file +++ b/libexec/rbenv-version-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