print the correct script name in error message

This commit is contained in:
Brian Wellington
2000-06-08 01:57:41 +00:00
parent 35a680bf40
commit f3a7310c12
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ fi
sh ifconfig.sh start || exit $?
test $# -gt 0 || { echo "usage: runtest.sh test-directory" >&2; exit 1; }
test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
test=$1
shift

View File

@@ -22,7 +22,7 @@
SYSTEMTESTTOP=.
. $SYSTEMTESTTOP/conf.sh
test $# -gt 0 || { echo "usage: runtest.sh test-directory" >&2; exit 1; }
test $# -gt 0 || { echo "usage: $0 test-directory" >&2; exit 1; }
test=$1
shift