ci: Allow binaries to be downloaded via redirect

By specifying `--location`, `curl` will follow redirects.
This commit is contained in:
Rūdolfs Ošiņš
2026-04-23 00:07:31 +02:00
committed by Lorenz Leutgeb
parent b6743c63fc
commit 1003b165e5
+1 -1
View File
@@ -38,7 +38,7 @@ install() {
esac
echo Downloading "$1" v"$2" from "$FETCH_URL into /tests/tmp/bin/$1/$2"
curl --fail -s "$FETCH_URL" | tar -xJ --strip-components=2 -C "$BINARY_PATH/$1/$2" "$FILENAME/bin/" || (echo "Download failed" && exit 1)
curl --fail --silent --location "$FETCH_URL" | tar -xJ --strip-components=2 -C "$BINARY_PATH/$1/$2" "$FILENAME/bin/" || (echo "Download failed" && exit 1)
fi
}