[email_account] Rewrite the number of args test

- Simplify the test of the number of args given (a test was uncessary)
This commit is contained in:
Thomas Preud'homme 2010-01-26 11:37:58 +01:00 committed by Thomas Preud'homme
parent fe258817f6
commit 068d816a82
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ ask_user_default_no ()
test_args ()
{
local - user domain
if [ \( $# -ge 1 -a "$1" = "-h" -a $# -gt 1 \) -o $# -gt 2 ]
if [ \( $# -gt 1 -a "$1" = "-h" \) -o $# -gt 2 ]
then
echo "Error! Too many arguments." >&2
exit 1