...remove debugging code from Spigot download

#74
This commit is contained in:
Geoff Bourne 2016-04-24 11:59:44 -05:00
parent b9f247728f
commit ae9109e2bf

View File

@ -68,7 +68,7 @@ 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 "x$downloadUrl" curl -o $SERVER -sSL "$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 (curl error code was $status)"