fix: Curl error on Chinese mirror (#706)

This commit is contained in:
Kroese 2024-04-26 16:30:30 +02:00 committed by GitHub
parent faec563b4a
commit 39c019193e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,9 @@ if [ ! -s "$RDC" ]; then
fKill "progress.sh"
if (( rc != 0 )); then
(( rc != 22 )) && error "Failed to download $LOC, reason: $rc" && exit 60
if (( rc != 22 )) && (( rc != 56 ));
error "Failed to download $LOC, reason: $rc" && exit 60
fi
SUM="skip"
else
SUM=$(md5sum "$RD" | cut -f 1 -d " ")