curl follows redirect
This commit is contained in:
parent
da43c38710
commit
3be342aae2
4
build.sh
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user