mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-14 17:47:15 +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
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user