瀏覽代碼

Apply readlink to output from `pwd` may returns "." to get actual path

pull/100/head
Yamashita Yuu 10 年之前
父節點
當前提交
1587d8a03c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      libexec/pyenv

+ 2
- 2
libexec/pyenv 查看文件

@ -44,13 +44,13 @@ fi
export PYENV_ROOT
if [ -z "${PYENV_DIR}" ]; then
PYENV_DIR="$(pwd)"
PYENV_DIR="$(abs_dirname "$(pwd)/..")"
else
cd "$PYENV_DIR" 2>/dev/null || {
echo "pyenv: cannot change working directory to \`$PYENV_DIR'"
exit 1
} >&2
PYENV_DIR="$(pwd)"
PYENV_DIR="$(abs_dirname "$(pwd)/..")"
cd "$OLDPWD"
fi
export PYENV_DIR

Loading…
取消
儲存