update_clamav-unofficial-sigs.sh: Set up the script so that it can resume if cloning the Git repository fails.

This commit is contained in:
2026-09-04 09:45:30 +02:00
parent b73fa92d43
commit 3fbb5da5de
+18 -1
View File
@@ -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