create_opendkim_key.sh: don't stop script, if nsuodate runs into an error, only break the script.

This commit is contained in:
Christoph 2021-12-10 11:15:35 +01:00
parent 7cf626d6fa
commit 05a2b21e95

View File

@ -1230,8 +1230,20 @@ EOF
END END
error "$(cat $log_file)" error "$(cat $log_file)"
delete_generated_files
clean_up 1 echononl "continue anyway [yes/no]: "
read OK
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/no]: "
read OK
done
if [[ $OK = "no" ]] ; then
error "Interrupted by user."
delete_generated_files
clean_up 1
fi
fi fi
fi fi