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
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user