Skip to content

Commit

Permalink
Fix plugin loading so that more than the first gets loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
illusori committed Dec 6, 2014
1 parent c36cf6b commit 54ac88f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* bash-itunes 1.2.4 (Candidate)
* Fix bug in plugins so more than the first gets loaded.

* bash-itunes 1.2.3 (2014-11-29-19:15)
* Run config file in ~/.bash-itunes/config if it exists.
* Internal/plugins: Automatically generate help from _usage_* and _help_* functions.
Expand Down
5 changes: 3 additions & 2 deletions itunes
Original file line number Diff line number Diff line change
Expand Up @@ -719,12 +719,13 @@ function _cmd_hide() {

function _cmd_plugins() {
echo "Installed plugins:"
local GLOBIGNORE="*~"
local glob="$plugins_dir/*"
local plugins=($glob)
if [ -z "$plugins" -o "$plugins" = "$glob" ]; then
if [ -z "${plugins[*]}" -o "${plugins[*]}" = "$glob" ]; then
echo " No plugins installed."
else
for plugin in $plugins; do
for plugin in "${plugins[@]}"; do
local plugin_cmd=`basename $plugin`
echo -n " $plugin_cmd - "
if [ -f "$plugin" ]; then
Expand Down

0 comments on commit 54ac88f

Please sign in to comment.