From 01d39850b564876a624fe9352b25ce69f4f59f0f Mon Sep 17 00:00:00 2001 From: Roman Bolshakov Date: Tue, 6 Jun 2017 14:09:45 +0300 Subject: [PATCH] Do not attempt to read .python-version directories (#606) --- libexec/pyenv-version-file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/pyenv-version-file b/libexec/pyenv-version-file index eb2f5c62..91d8b0d3 100755 --- a/libexec/pyenv-version-file +++ b/libexec/pyenv-version-file @@ -9,7 +9,7 @@ target_dir="$1" find_local_version_file() { local root="$1" while ! [[ "$root" =~ ^//[^/]*$ ]]; do - if [ -e "${root}/.python-version" ]; then + if [ -f "${root}/.python-version" ]; then echo "${root}/.python-version" return 0 fi