[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:
parent
fe258817f6
commit
068d816a82
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue