...try wget for Spigot download

#74
This commit is contained in:
Geoff Bourne 2016-04-24 12:40:59 -05:00
parent ae9109e2bf
commit b5e459ab0a

View file

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