treat 404 as warning, not error

This commit is contained in:
Rudolf Polzer 2010-07-18 19:08:13 +02:00
parent b730d3b2c8
commit 8bfb119d5e

View File

@ -153,12 +153,12 @@ getthemap()
if ! wget -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
rm -f "$bspdir/$M-$blobhash.pk3"
echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
return 1
return 0
fi
if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
rm -f "$bspdir/$M-$blobhash.pk3"
echo "WARNING: could not download $url$M-$blobhash.pk3, invalid zip file"
return 1
return 0
fi
}