]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Do not repeat trying to screenshot a map, EVEN if the branch isn't marked done. master
authorRudolf Polzer <divVerent@gmail.com>
Sun, 6 Apr 2025 19:23:40 +0000 (15:23 -0400)
committerRudolf Polzer <divVerent@gmail.com>
Sun, 6 Apr 2025 19:24:01 +0000 (15:24 -0400)
misc/tools/xonotic-map-compiler-autobuild

index 10a8e8708d1bd17ca51bf996747f7d43df290ee8..0d4a61ef1c0ced07e9aee985e2e6953e7f38c2f9 100755 (executable)
@@ -263,6 +263,11 @@ screenshotthemap()
                return
        fi
 
+       if lwp-request -m HEAD "$url$M-$blobhash/$M.ircss"; then
+               # already spammed the chatroom
+               return
+       fi
+
        if ! unzip -l "$bspdir/$M-$blobhash.pk3" "maps/$M.bsp"; then
                # no BSP file
                return