Use RBENV_ROOT to search for rbenv-exec plugins

This commit is contained in:
Sam Stephenson 2011-09-11 12:00:02 -05:00
parent 7ac964353f
commit 8f6b0bc1d4

View file

@ -11,7 +11,7 @@ RBENV_COMMAND_PATH="$(rbenv-which "$RBENV_COMMAND")"
RBENV_BIN_PATH="${RBENV_COMMAND_PATH%/*}" RBENV_BIN_PATH="${RBENV_COMMAND_PATH%/*}"
shopt -s nullglob shopt -s nullglob
RBENV_EXEC_PLUGINS=(/etc/rbenv.d/exec/*.bash ${HOME}/.rbenv/rbenv.d/exec/*.bash) RBENV_EXEC_PLUGINS=(/etc/rbenv.d/exec/*.bash ${RBENV_ROOT}/rbenv.d/exec/*.bash)
shopt -u nullglob shopt -u nullglob
for script in ${RBENV_EXEC_PLUGINS[@]}; do for script in ${RBENV_EXEC_PLUGINS[@]}; do