From 3fbb5da5de38550d5ae10e6194c0eb604d783a63 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 4 Sep 2026 09:45:30 +0200 Subject: [PATCH] update_clamav-unofficial-sigs.sh: Set up the script so that it can resume if cloning the Git repository fails. --- update_clamav-unofficial-sigs.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/update_clamav-unofficial-sigs.sh b/update_clamav-unofficial-sigs.sh index 0cd7daf..3719eab 100755 --- a/update_clamav-unofficial-sigs.sh +++ b/update_clamav-unofficial-sigs.sh @@ -678,8 +678,25 @@ if [[ -d "/tmp/clamav-unofficial-sigs" ]]; then fi git clone https://github.com/extremeshok/clamav-unofficial-sigs.git /tmp/clamav-unofficial-sigs > $log_file 2>&1 if [[ "$?" -ne 0 ]] ; then - installation_failed=true error "$(cat $log_file)" + echo "" + echo " Command was:" + echo " git clone https://github.com/extremeshok/clamav-unofficial-sigs.git /tmp/clamav-unofficial-sigs" + echo "" + echo " Not recomend, but you can try:" + echo " GIT_SSL_NO_VERIFY=true git clone ..." + echo "" + installation_failed=true + + 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 if ! $installation_failed ; then echo_ok