From 05a2b21e95e1ca3ce438fb5a0e24321e0c0b7d14 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 10 Dec 2021 11:15:35 +0100 Subject: [PATCH] create_opendkim_key.sh: don't stop script, if nsuodate runs into an error, only break the script. --- create_opendkim_key.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/create_opendkim_key.sh b/create_opendkim_key.sh index 9068fb8..aec9305 100755 --- a/create_opendkim_key.sh +++ b/create_opendkim_key.sh @@ -1230,8 +1230,20 @@ EOF END 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