From 3be342aae23eef9b850480613794324aae564fab Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Fri, 7 Apr 2023 16:08:02 +0200 Subject: [PATCH] curl follows redirect --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 31e8650..ddb99f9 100644 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ URL_BUILD='https://download.geysermc.org/v2/projects/geyser/versions/latest/buil echo "Getting Geyser last build infos..." # get paper build version -if ! curl -s $URL_BUILD -o build_infos.json; then +if ! curl -L -s $URL_BUILD -o build_infos.json; then echo -e "Error: Can’t join API" exit 1 fi @@ -27,7 +27,7 @@ RUNNABLE_JAR='Geyser-'$GEYSER_VERSION'-'$GEYSER_BUILD'.jar' echo "Downloadling Geyser Standalone..." echo "From "$DOWNLOAD_URL echo "To "$RUNNABLE_JAR -curl -o $RUNNABLE_JAR $DOWNLOAD_URL +curl -L -o $RUNNABLE_JAR $DOWNLOAD_URL DOCKER_TAG="cr.pandacube.fr/geyser:"$GEYSER_VERSION"-"$GEYSER_BUILD