mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Ensure RBENV_DIR is always an absolute path
Otherwise, `RBENV_DIR=bin rbenv version-file` loops indefinitely
This commit is contained in:
parent
fb0ec9e157
commit
e49be969ab
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ export RBENV_ROOT
|
||||||
|
|
||||||
if [ -z "${RBENV_DIR}" ]; then
|
if [ -z "${RBENV_DIR}" ]; then
|
||||||
RBENV_DIR="$(pwd)"
|
RBENV_DIR="$(pwd)"
|
||||||
|
else
|
||||||
|
RBENV_DIR="$(abs_dirname "$RBENV_DIR")"
|
||||||
fi
|
fi
|
||||||
export RBENV_DIR
|
export RBENV_DIR
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue