diff --git a/bin/vmail-domains-mod.sh b/bin/vmail-domains-mod.sh index 9e4a879..35236d9 100755 --- a/bin/vmail-domains-mod.sh +++ b/bin/vmail-domains-mod.sh @@ -34,7 +34,7 @@ if [[ -n $domain ]]; then fi else echo "domain name is required" - exit + exit 1 fi # set update portion of command to empty string @@ -88,7 +88,7 @@ if [[ -n $status ]]; then dbset="$dbset status=\"$status\"" else echo "ERROR: status (-s) must be 1 or 0" - exit + exit 1 fi fi @@ -101,5 +101,6 @@ if [ -n "$dbset" ]; then else echo "ERROR: No values passed for update." + exit 1 fi