Fix Coin prebuilt GCC download

We already have the DownloadURL function which is used pretty
much everywhere except here, so it makes sense to use it here too.

Change-Id: Icc1d3db7e4e3d3f61f6cd6a22b35e2ef007ff40c
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
David Skoland
2021-11-25 16:35:00 +01:00
parent 2566bbfe71
commit 9246ebe17f

View File

@@ -69,7 +69,7 @@ function InstallGCC() {
buildFolder="$HOME/gcc_build"
echo "Fetching prebuilt GCC."
curl --fail -L --retry 5 --retry-delay 5 -o "$prebuiltTarget" "$prebuiltGCC" || (
DownloadURL "$prebuiltGCC" "" "$prebuiltSHA1" "$prebuiltTarget" || (
echo "Fetching prebuilt GCC failed. Building from sources."
DownloadURL "$cachedUrl" "$officialUrl" "$sourcesSHA1" "$targetFile"
)