fix(scripts): forget exit on error!

This commit is contained in:
Asif Bacchus 2021-05-13 13:57:40 -06:00
parent 3f8ab5d378
commit e17624864c
1 changed files with 3 additions and 0 deletions

View File

@ -20,12 +20,15 @@ else
# check for missing environment variable values
if [ -z "$SMARTHOST" ]; then
printf "\nYou must specify the hostname or IP address of a smarthost where mail should be relayed.\n\n"
exit 1
fi
if [ -z "$SMARTHOST_USERNAME" ]; then
printf "\nYou must provide a username for smarthost authentication.\n\n"
exit 1
fi
if [ -z "$SMARTHOST_PASSWORD" ]; then
printf "\nYou must provide a password for smarthost authentication.\n\n"
exit 1
fi
# set failsafes