Ensure RBENV_DIR is always an absolute path

Otherwise, `RBENV_DIR=bin rbenv version-file` loops indefinitely
This commit is contained in:
Sam Stephenson 2011-10-01 12:15:20 -05:00
parent fb0ec9e157
commit e49be969ab

View file

@ -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