Unverified Commit 39c01919 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Curl error on Chinese mirror (#706)

parent faec563b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 " ")