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