build: fix argument count check in dummy-man again

* man/dummy-man: Fix argument count check, now only permitting
exactly 1 argument, the program name.
Reported by Andreas Schwab <schwab@linux-m68k.org>
This commit is contained in:
Bernhard Voelker committed 2014-09-23 01:44:51 +02:00
1 parent 1f994f3014
commit bf2057b20b
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ while test $# -gt 0; do
done
test $# -gt 0 || fatal_ "missing argument"
test $# -gt 1 || fatal_ "too many non-option arguments"
test $# -le 1 || fatal_ "too many non-option arguments"
baseout=`basename_ "$output"`
sed 's/^/WARNING: /' >&2 <<END