diff --git a/bin/git-bulk b/bin/git-bulk index 172d866..5c0eecc 100755 --- a/bin/git-bulk +++ b/bin/git-bulk @@ -95,8 +95,11 @@ function wsnameToCurrent () { } # helper to check number of arguments -function allowedargcount () { - ( test "$paramcount" -ne "$1" ) && ( usage && echo 1>&2 "error: wrong number of arguments" && exit 1 ) +function allowedargcount { + if test "$paramcount" -ne $1; then + echo 1>&2 "error: wrong number of arguments" && usage + exit 1; + fi } # execute the bulk operation