From 068d816a8232cad3078c811b1179c25f7dd491f8 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 26 Jan 2010 11:37:58 +0100 Subject: [PATCH] [email_account] Rewrite the number of args test - Simplify the test of the number of args given (a test was uncessary) --- email_account/email_account | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email_account/email_account b/email_account/email_account index 7f44288..5297f00 100755 --- a/email_account/email_account +++ b/email_account/email_account @@ -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