mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-15 01:57:24 +00:00
treat 404 as warning, not error
This commit is contained in:
parent
b730d3b2c8
commit
8bfb119d5e
@ -153,12 +153,12 @@ getthemap()
|
|||||||
if ! wget -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
|
if ! wget -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
|
||||||
rm -f "$bspdir/$M-$blobhash.pk3"
|
rm -f "$bspdir/$M-$blobhash.pk3"
|
||||||
echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
|
echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
|
if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
|
||||||
rm -f "$bspdir/$M-$blobhash.pk3"
|
rm -f "$bspdir/$M-$blobhash.pk3"
|
||||||
echo "WARNING: could not download $url$M-$blobhash.pk3, invalid zip file"
|
echo "WARNING: could not download $url$M-$blobhash.pk3, invalid zip file"
|
||||||
return 1
|
return 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user