mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
iterate over all matching plugins, not just the first
This commit is contained in:
parent
c3089c8439
commit
5d8c40444d
3 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ 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 ${HOME}/.rbenv/rbenv.d/exec/*.bash)
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
|
|
||||||
for script in $RBENV_EXEC_PLUGINS; do
|
for script in ${RBENV_EXEC_PLUGINS[@]}; do
|
||||||
source $script
|
source $script
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,6 @@ shopt -s nullglob
|
||||||
RBENV_REHASH_PLUGINS=(/etc/rbenv.d/rehash/*.bash ${HOME}/.rbenv/rbenv.d/rehash/*.bash)
|
RBENV_REHASH_PLUGINS=(/etc/rbenv.d/rehash/*.bash ${HOME}/.rbenv/rbenv.d/rehash/*.bash)
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
|
|
||||||
for script in $RBENV_REHASH_PLUGINS; do
|
for script in ${RBENV_REHASH_PLUGINS[@]}; do
|
||||||
source $script
|
source $script
|
||||||
done
|
done
|
||||||
|
|
|
@ -8,7 +8,7 @@ shopt -s nullglob
|
||||||
RBENV_WHICH_PLUGINS=(/etc/rbenv.d/which/*.bash ${HOME}/.rbenv/rbenv.d/which/*.bash)
|
RBENV_WHICH_PLUGINS=(/etc/rbenv.d/which/*.bash ${HOME}/.rbenv/rbenv.d/which/*.bash)
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
|
|
||||||
for script in $RBENV_WHICH_PLUGINS; do
|
for script in ${RBENV_WHICH_PLUGINS[@]}; do
|
||||||
source $script
|
source $script
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue