Skip to content

Commit

Permalink
Merge pull request #137 from erichs/fix_136
Browse files Browse the repository at this point in the history
fix for issue #136
  • Loading branch information
tswicegood committed May 20, 2012
2 parents 3bde23a + bffae2a commit 311f95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/helpers.bash
Expand Up @@ -74,7 +74,7 @@ disable-plugin ()
fi
done
else
typeset plugin=$(ls $BASH_IT/plugins/enabled/$1.*bash 2>/dev/null | head -1)
typeset plugin=$(command ls $BASH_IT/plugins/enabled/$1.*bash 2>/dev/null | head -1)
if [ ! -h $plugin ]; then
printf '%s\n' 'sorry, that does not appear to be an enabled plugin.'
return
Expand Down Expand Up @@ -107,7 +107,7 @@ enable-plugin ()
fi
done
else
typeset plugin=$(ls $BASH_IT/plugins/available/$1.*bash 2>/dev/null | head -1)
typeset plugin=$(command ls $BASH_IT/plugins/available/$1.*bash 2>/dev/null | head -1)
if [ -z "$plugin" ]; then
printf '%s\n' 'sorry, that does not appear to be an available plugin.'
return
Expand Down

0 comments on commit 311f95b

Please sign in to comment.