From 39c019193e8e212cc501f8a0a7de078c716ca9bc Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 26 Apr 2024 16:30:30 +0200 Subject: [PATCH] fix: Curl error on Chinese mirror (#706) --- src/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 0d45cbe..9ba4dc6 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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 " ")