install_amavis.sh: interrupt installation if a perl module installaition failed.

This commit is contained in:
Christoph 2021-10-28 01:22:07 +02:00
parent 972be2df87
commit 4994dba228

View File

@ -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