From b5e459ab0a07f99c9391fe50ebe1eb88937f42bb Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 24 Apr 2016 12:40:59 -0500 Subject: [PATCH] ...try wget for Spigot download #74 --- minecraft-server/start-minecraft.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index 44220f30..24bf5654 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -68,10 +68,10 @@ function downloadSpigot { downloadUrl=$(cat /tmp/versions | jq -r ".[] | select(.version == \"$match\") | .downloadUrl") if [[ -n $downloadUrl ]]; then echo "Downloading $match" - curl -o $SERVER -sSL "$downloadUrl" + wget -q -O $SERVER "$downloadUrl" status=$? if [ $status != 0 ]; then - echo "ERROR: failed to download from $downloadUrl due to (curl error code was $status)" + echo "ERROR: failed to download from $downloadUrl due to (error code was $status)" exit 3 fi else