mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 22:03:52 -05:00
Ensure RBENV_DIR is always an absolute path
Otherwise, `RBENV_DIR=bin rbenv version-file` loops indefinitely
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user