[email_account] Handle no args properly

Don't fail with -u when no args are given
This commit is contained in:
Thomas Preud'homme 2010-01-26 11:14:24 +01:00 committed by Thomas Preud'homme
parent 70b6750518
commit 7534e030be
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ test_args ()
echo "Error! Too many arguments." >&2 echo "Error! Too many arguments." >&2
exit 1 exit 1
fi fi
if [ $# -eq 0 -o "$1" = "-h" -o "$1" = "-help" ] if [ -z "$1" -o "$1" = "-h" -o "$1" = "-help" ]
then then
usage $(basename $0) usage $(basename $0)
exit 0 exit 0
@ -427,5 +427,5 @@ main ()
return $ret return $ret
} }
main "$@" main "${@:-""}"
exit $? exit $?