mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 13:53:53 -05:00
Do not attempt to read .python-version directories (#606)
This commit is contained in:
committed by
Daniel Hahler
parent
d461b5f1d8
commit
01d39850b5
@@ -9,7 +9,7 @@ target_dir="$1"
|
|||||||
find_local_version_file() {
|
find_local_version_file() {
|
||||||
local root="$1"
|
local root="$1"
|
||||||
while ! [[ "$root" =~ ^//[^/]*$ ]]; do
|
while ! [[ "$root" =~ ^//[^/]*$ ]]; do
|
||||||
if [ -e "${root}/.python-version" ]; then
|
if [ -f "${root}/.python-version" ]; then
|
||||||
echo "${root}/.python-version"
|
echo "${root}/.python-version"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user