mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-12 21:32:28 +00:00
parent
ae9109e2bf
commit
b5e459ab0a
1 changed files with 2 additions and 2 deletions
|
@ -68,10 +68,10 @@ function downloadSpigot {
|
||||||
downloadUrl=$(cat /tmp/versions | jq -r ".[] | select(.version == \"$match\") | .downloadUrl")
|
downloadUrl=$(cat /tmp/versions | jq -r ".[] | select(.version == \"$match\") | .downloadUrl")
|
||||||
if [[ -n $downloadUrl ]]; then
|
if [[ -n $downloadUrl ]]; then
|
||||||
echo "Downloading $match"
|
echo "Downloading $match"
|
||||||
curl -o $SERVER -sSL "$downloadUrl"
|
wget -q -O $SERVER "$downloadUrl"
|
||||||
status=$?
|
status=$?
|
||||||
if [ $status != 0 ]; then
|
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
|
exit 3
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue