curl follows redirect

This commit is contained in:
Marc Baloup 2023-04-07 16:08:02 +02:00
parent da43c38710
commit 3be342aae2

View File

@ -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: Cant 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