Commit 1c1a1924 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget fix: return error code when all mirrors fail in download_with_mirroring

parent b7102f45
...@@ -297,6 +297,7 @@ download_with_mirroring() ...@@ -297,6 +297,7 @@ download_with_mirroring()
MIRROR="https://mirror.eterfund.org" MIRROR="https://mirror.eterfund.org"
SECONDURL="$(echo "$URL" | sed -e "s|^.*://|$MIRROR/|")" SECONDURL="$(echo "$URL" | sed -e "s|^.*://|$MIRROR/|")"
$CMD "$@" "$SECONDURL" && URL="$SECONDURL" && return $CMD "$@" "$SECONDURL" && URL="$SECONDURL" && return
return $res
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment