[boilerplate/test] Use numerical equality not string equality

test == != -eq
This commit is contained in:
Chris Wilson 2009-09-02 10:09:50 +01:00
parent f5df38ca5e
commit 2c03dfa0b4
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#! /bin/sh
if test $# == 0; then
if test $# -eq 0; then
echo "$0: no input files." >&2
exit 0
fi

View file

@ -1,6 +1,6 @@
#! /bin/sh
if test $# == 0; then
if test $# -eq 0; then
echo "$0: no input files." >&2
exit 0
fi