diff --git a/bin/git-bulk b/bin/git-bulk index e3bdd66..48c1954 100755 --- a/bin/git-bulk +++ b/bin/git-bulk @@ -129,7 +129,7 @@ function wsnameToCurrent () { # helper to check number of arguments. function allowedargcount () { - if [ "$paramcount" -ne "$1" ] && [ "$paramcount" -ne "$2" ]; then + if [ "$paramcount" -ne "${1:-0}" ] && [ "$paramcount" -ne "${2:-0}" ]; then echo 1>&2 "error: wrong number of arguments" && usage; exit 1; fi