]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix an inverted test breaking dummy-man
authorAlban Bedel <alban.bedel@avionic-design.de>
Mon, 22 Sep 2014 09:53:13 +0000 (11:53 +0200)
committerPádraig Brady <P@draigBrady.com>
Mon, 22 Sep 2014 18:37:52 +0000 (19:37 +0100)
* man/dummy-man: Fix argument count check,
allowing dummy-man to run (on systems without perl).
Fixes http://bugs.gnu.org/18531

man/dummy-man

index bf31912b2eae0a0cdf11242b8cc27d597d5cb92d..65b85d5556923ba4c9257c1becef6f913d2fac77 100755 (executable)
@@ -39,7 +39,7 @@ while test $# -gt 0; do
 done
 
 test $# -gt 0 || fatal_ "missing argument"
-test $# -le 1 || fatal_ "too many non-option arguments"
+test $# -gt 1 || fatal_ "too many non-option arguments"
 
 baseout=`basename_ "$output"`
 sed 's/^/WARNING: /' >&2 <<END