add exit error code

This commit is contained in:
Matthew Saunders Brown 2022-05-10 15:50:38 -07:00
parent 05996c8c4d
commit 1ff1a23b4f

View File

@ -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