From: Dan Scott Date: Sun, 5 Jan 2020 16:59:36 +0000 (-0500) Subject: LP1858344 Make curl follow redirects to retrieve lib/json-20160810.jar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8abc7a23a51769bf2696bc8bfb196af5bfb8343c;p=working%2FHatch.git LP1858344 Make curl follow redirects to retrieve lib/json-20160810.jar Maven redirects some requests to other servers, but unless curl is told to follow redirects using the -L/--location flag, it will simply download the HTML response for the HTTP 301 "Moved permanently" message, breaking the ability to compile Hatch. This commit adds the "-L" flag to the curl request for lib/json-20160810.jar, resolving the issue. Signed-off-by: Dan Scott Signed-off-by: Bill Erickson --- diff --git a/fetch-deps.sh b/fetch-deps.sh index 8c235998b1..3daf3ba501 100755 --- a/fetch-deps.sh +++ b/fetch-deps.sh @@ -112,7 +112,7 @@ fi; mkdir -p lib if [ ! -f lib/$JSON_JAR ]; then echo "Fetching JSON libs..." - curl -o lib/$JSON_JAR $JSON_URL + curl -L -o lib/$JSON_JAR $JSON_URL fi; rm -rf "$JDK_DIR_SHORT" "$JFX_DIR_SHORT";