mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-20 01:38:13 +00:00
1 parent
ae9109e2bf
commit
b5e459ab0a
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user