runtest: Fixed regression that prevented using just the -h option.

This commit is contained in:
Dylan Smith 2008-10-13 19:59:25 -04:00 committed by Alexandre Julliard
parent 17bf6ef8fc
commit a9b2ee2afb
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ platform=$WINETEST_PLATFORM
WINETEST_DEBUG=${WINETEST_DEBUG:-1}
# parse command-line options
while [ "$#" -gt 1 ]; do
while [ "$#" -gt 0 ]; do
case "$1" in
-h)
usage
@ -76,7 +76,7 @@ while [ "$#" -gt 1 ]; do
shift; topobjdir="$1"
if [ ! -d "$topobjdir" ]; then usage; fi
;;
--)
*)
break
;;
esac