浏览代码

simplicy the check for infinite loop

pull/101/head
Yamashita Yuu 12 年前
父节点
当前提交
71a916faf2
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      libexec/pyenv-version-file

+ 3
- 3
libexec/pyenv-version-file 查看文件

@ -4,8 +4,8 @@ set -e
[ -n "$PYENV_DEBUG" ] && set -x
find_local_version_file() {
local prev root="$1"
while [ -n "$root" ] && [ "$root" != "$prev" ]; do
local root="$1"
while [ -n "$root" ]; do
if [ -e "${root}/.python-version" ]; then
echo "${root}/.python-version"
exit
@ -13,7 +13,7 @@ find_local_version_file() {
echo "${root}/.pyenv-version"
exit
fi
prev="${root}"
[ "${root}" = "${root%/*}" ] && break
root="${root%/*}"
done
}

正在加载...
取消
保存