From 1ff1a23b4f479f044636d7ee09100cef50ad028c Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 10 May 2022 15:50:38 -0700 Subject: [PATCH] add exit error code --- bin/vmail-domains-mod.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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