mirror of
https://github.com/pyenv/pyenv.git
synced 2026-09-10 15:46:17 -04:00
Apply readlink to output from pwd may returns "." to get actual path
This commit is contained in:
parent
5dea3c9e63
commit
1587d8a03c
|
|
@ -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…
Reference in a new issue