From 95b1b05cbe6fc0578eeba40885d97787367adecf Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 5 Jun 2017 15:40:59 +0200 Subject: [PATCH] rbenv-version-file: ensure that the version file is a file Forwarded from https://github.com/pyenv/pyenv/pull/606. --- libexec/rbenv-version-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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