diff options
author | root <root@jones.dk> | 2008-09-08 14:38:12 +0200 |
---|---|---|
committer | root <root@jones.dk> | 2008-09-08 14:38:12 +0200 |
commit | 4571202f8ab9516a60d1995f656c2b7826866592 (patch) | |
tree | 491cbd96809d5bfd062be0a12d5941ddd721d694 | |
parent | b7ad8bd7a9a3ffcc5bc6a88a502d3f0f61f04920 (diff) |
Fix localadduser accept 2 phone numbers.
-rwxr-xr-x | localadduser | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localadduser b/localadduser index 4989242..010afe6 100755 --- a/localadduser +++ b/localadduser @@ -39,10 +39,10 @@ for chunk in $@; do echo "E: Phone number provided without leading area code" >&2 exit 1 fi - if [ -n "$office_phone" ]; then + if [ -n "$home_phone" ]; then echo "E: More than 2 phone numbers provided" >&2 exit 1 - elif [ -n "$home_phone" ]; then + elif [ -n "$office_phone" ]; then office_phone="$phone_area $chunk" else home_phone="$phone_area $chunk" |