]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
treat 404 as warning, not error
authorRudolf Polzer <divverent@alientrap.org>
Sun, 18 Jul 2010 17:08:13 +0000 (19:08 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 18 Jul 2010 17:08:13 +0000 (19:08 +0200)
misc/tools/xonotic-map-compiler-autobuild

index 212d0a9656cdd6137a23e13d0826bc9cbdeebc19..8f4d6a78e4f3874123c25ffbdb452ccba81cba7b 100755 (executable)
@@ -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"
        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"
        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
 }
 
        fi
 }