iterate over all matching plugins, not just the first

This commit is contained in:
Jamis Buck 2011-08-03 20:55:03 -06:00
parent c3089c8439
commit 5d8c40444d
3 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ shopt -s nullglob
RBENV_EXEC_PLUGINS=(/etc/rbenv.d/exec/*.bash ${HOME}/.rbenv/rbenv.d/exec/*.bash)
shopt -u nullglob
for script in $RBENV_EXEC_PLUGINS; do
for script in ${RBENV_EXEC_PLUGINS[@]}; do
source $script
done

View file

@ -23,6 +23,6 @@ shopt -s nullglob
RBENV_REHASH_PLUGINS=(/etc/rbenv.d/rehash/*.bash ${HOME}/.rbenv/rbenv.d/rehash/*.bash)
shopt -u nullglob
for script in $RBENV_REHASH_PLUGINS; do
for script in ${RBENV_REHASH_PLUGINS[@]}; do
source $script
done

View file

@ -8,7 +8,7 @@ shopt -s nullglob
RBENV_WHICH_PLUGINS=(/etc/rbenv.d/which/*.bash ${HOME}/.rbenv/rbenv.d/which/*.bash)
shopt -u nullglob
for script in $RBENV_WHICH_PLUGINS; do
for script in ${RBENV_WHICH_PLUGINS[@]}; do
source $script
done