Skip to content

Commit

Permalink
avoid "unary operator expected" errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdillon committed Apr 25, 2017
1 parent 4fbd805 commit 17a2bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ case "$command" in
*)
# attempt to lookup command function
fn="command_$command"
if [ `type -t $fn` = 'function' ]; then
if [ "$(type -t $fn)" = 'function' ]; then
$fn $*
else
# give up and complain
Expand Down

0 comments on commit 17a2bef

Please sign in to comment.