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

View File

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