summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2019-04-03 13:32:37 +0200
committercos <cos>2019-04-03 13:32:37 +0200
commit923e215ff15d51b4e78cc24a4a12dab3d4ec8fc1 (patch)
tree8419bb115da60cad83cb27fe8bfb9e38bcd0c8e7
parent90f212e59a2cbe8b49fcc8d50c4f3bc2bba932ae (diff)
downloadjava-language-server-fix/handle_missing_curl.zip
Avoid creating empty file on curl failfix/handle_missing_curl
Have curl download the jar to a file rather than relying on shell redirection.
-rwxr-xr-xscripts/patch_gson.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/patch_gson.sh b/scripts/patch_gson.sh
index 3825683..d3346ab 100755
--- a/scripts/patch_gson.sh
+++ b/scripts/patch_gson.sh
@@ -10,7 +10,8 @@ set -e
# Download Gson jar
cd modules
-curl https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar > gson.jar
+curl --output gson.jar \
+ https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
# Unpack jar into modules/classes
mkdir classes