From 5d8c40444de21e54fcf248055f3f184e8ef485a1 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 3 Aug 2011 20:55:03 -0600 Subject: [PATCH] iterate over all matching plugins, not just the first --- libexec/rbenv-exec | 2 +- libexec/rbenv-rehash | 2 +- libexec/rbenv-which | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/rbenv-exec b/libexec/rbenv-exec index 5bd4e8c5..ca8d7755 100755 --- a/libexec/rbenv-exec +++ b/libexec/rbenv-exec @@ -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 diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index 96305478..c57eab6d 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -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 diff --git a/libexec/rbenv-which b/libexec/rbenv-which index 34ea534e..74572f47 100755 --- a/libexec/rbenv-which +++ b/libexec/rbenv-which @@ -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