Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Add -L to both eclipse.org CURL calls
Browse files Browse the repository at this point in the history
Fixes failing download due to a redirect happening on download.eclipse.org. Without it, only a error html page is downloaded.
  • Loading branch information
yngwi authored and eruizc-dev committed Sep 17, 2021
1 parent 3351f7e commit 9b78e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdtls-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ function jdtls_install {
return 1
fi

LATEST=`curl -s 'http://download.eclipse.org/jdtls/snapshots/latest.txt'`
LATEST=`curl -Ls 'http://download.eclipse.org/jdtls/snapshots/latest.txt'`
echo "${LATEST%.tar.gz} is going to be installed"

mkdir -p "$JDTLS_ROOT"
cd "$JDTLS_ROOT"

curl "http://download.eclipse.org/jdtls/snapshots/$LATEST" > "$LATEST"
curl -L "http://download.eclipse.org/jdtls/snapshots/$LATEST" > "$LATEST"
tar -xf "$LATEST"
rm "$LATEST"
chmod -R 755 "$JDTLS_ROOT"
Expand Down

0 comments on commit 9b78e10

Please sign in to comment.