From 4994dba228ac5cad55ddb1e22b58c7548b38259c Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 28 Oct 2021 01:22:07 +0200 Subject: [PATCH] install_amavis.sh: interrupt installation if a perl module installaition failed. --- install_amavis.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install_amavis.sh b/install_amavis.sh index 6dd2dd4..773ab06 100755 --- a/install_amavis.sh +++ b/install_amavis.sh @@ -3631,7 +3631,17 @@ for _module in $_needed_cpan_modules ; do if [[ "$?" -ne 0 ]] ; then installation_failed=true error "$(cat $tmp_err_msg)" + + echononl "continue anyway [yes/no]: " + read OK + OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/nno]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Abbruch durch User" fi + done if ! $installation_failed ; then echo_ok