8331164: createJMHBundle.sh download jars fail when url needed to be redirected

Reviewed-by: erikj, shade
This commit is contained in:
SendaoYan 2024-04-29 17:50:39 +00:00 committed by Aleksey Shipilev
parent 9b423a8509
commit eb88343fb7

View File

@ -44,7 +44,7 @@ rm -f *
fetchJar() {
url="${MAVEN_MIRROR}/$1/$2/$3/$2-$3.jar"
if command -v curl > /dev/null; then
curl -O --fail $url
curl -OL --fail $url
elif command -v wget > /dev/null; then
wget $url
else