Skip to content

Commit

Permalink
8331164: createJMHBundle.sh download jars fail when url needed to be …
Browse files Browse the repository at this point in the history
…redirected

The curl command lack of "-L" option, cause download file fail, the size of download file is empty.

Signed-off-by: sendaoYan <yansendao.ysd@alibaba-inc.com>
  • Loading branch information
sendaoYan committed Apr 26, 2024
1 parent b3bcc49 commit b2eda4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/devkit/createJMHBundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2eda4d

Please sign in to comment.