Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Ensure RBENV_DIR is always an absolute path
Browse files Browse the repository at this point in the history
Otherwise, `RBENV_DIR=bin rbenv version-file` loops indefinitely
  • Loading branch information
sstephenson committed Oct 1, 2011
1 parent fb0ec9e commit e49be96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libexec/rbenv
Expand Up @@ -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

Expand Down

0 comments on commit e49be96

Please sign in to comment.