summaryrefslogtreecommitdiff
path: root/localadduser
diff options
context:
space:
mode:
Diffstat (limited to 'localadduser')
-rwxr-xr-xlocaladduser4
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"