Skip to content

Commit

Permalink
Using curl instead of wget to enable usage of file protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Apr 18, 2024
1 parent d50e886 commit 2b4bd8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if [ ! "x$FORCE_TMP_JTREG" == "x" ] ; then
ddir=`mktemp -d`
pushd "$ddir"
ball=forcedJtreg.tar.gz
wget "$FORCE_TMP_JTREG" -O "$ball"
curl -L -o "$ball" "$FORCE_TMP_JTREG"
tar -xf "$ball"
popd
JTREG_HOME="$ddir/jtreg"
Expand Down Expand Up @@ -108,10 +108,10 @@ echo "treating jdk as: $JDK_MAJOR"
if [ ! -e "$JTREG_HOME" ] ; then
if [ "0$JDK_MAJOR" -le "8" ] ; then
ball=jtreg-6+1-jtrfix.tar.gz
wget "https://github.com/andrlos/jtreg/releases/download/6.1-jtrfix-V01.0/$ball"
curl -L -o "$ball" "https://github.com/andrlos/jtreg/releases/download/6.1-jtrfix-V01.0/$ball"
else
ball=jtreg-7.3.1+1-jtrfix.tar.gz
wget "https://github.com/andrlos/jtreg/releases/download/7.3.1%2B1-jtrfix-V01.0/$ball"
curl -L -o "$ball" "https://github.com/andrlos/jtreg/releases/download/7.3.1%2B1-jtrfix-V01.0/$ball"
fi
tar -xf $ball
fi
Expand Down

0 comments on commit 2b4bd8a

Please sign in to comment.