]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
./all update-maps: suppress warnings from verious tools if we fail to download map... matthiaskrgr/mapdownload_nospam_on_failure
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 10 Mar 2017 11:31:49 +0000 (12:31 +0100)
committerMatthias Krüger <matthias.krueger@famsik.de>
Fri, 10 Mar 2017 11:31:49 +0000 (12:31 +0100)
misc/tools/xonotic-map-compiler-autobuild

index bbcedec0ddbc6a2db0fb9056a28b3a75d488ce6f..5c6c71ed35f2d3105f80179662346683b0d3caa3 100755 (executable)
@@ -295,20 +295,20 @@ getthemap()
        M=$4
        blobhash=$5
        commithash=$6
-       if mv "$bspdir_old/$M-$blobhash.pk3" "$bspdir/$M-$blobhash.pk3"; then
+       if mv "$bspdir_old/$M-$blobhash.pk3" "$bspdir/$M-$blobhash.pk3" >& /dev/null; then
                if unzip -l "$bspdir/$M-$blobhash.pk3" >/dev/null 2>&1; then
                        return 0
                fi
        fi
-       if ! wget -c -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
-               if ! curl -o "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
-                       rm -f "$bspdir/$M-$blobhash.pk3"
+       if ! wget -c -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3" >& /dev/null; then
+               if ! curl -o "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3" >& /dev/null; then
+                       rm -f "$bspdir/$M-$blobhash.pk3" >& /dev/null
                        echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
                        getthemap_fail=true
                        return 0
                fi
        fi
-       if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
+       if ! unzip -l "$bspdir/$M-$blobhash.pk3" >& /dev/null; then
                rm -f "$bspdir/$M-$blobhash.pk3"
                echo "WARNING: could not download $url$M-$blobhash.pk3, invalid zip file"
                getthemap_fail=true