mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 13:53:53 -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
|
||||
RBENV_DIR="$(pwd)"
|
||||
else
|
||||
RBENV_DIR="$(abs_dirname "$RBENV_DIR")"
|
||||
fi
|
||||
export RBENV_DIR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user