]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Adjust autobuild retention
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 25 Feb 2024 22:00:20 +0000 (08:00 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 25 Feb 2024 22:00:20 +0000 (08:00 +1000)
Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
misc/infrastructure/xonotic-release-build.cron

index 8e80bf77104e8ed8b8e4455c2da6da10c043f8dc..f9f16dacb3969b832132863cda013f883c1d39ae 100755 (executable)
@@ -46,7 +46,7 @@ set -ex
 
 test -z "$RELEASETYPEDIR" && ssh autobuild-release-uploader@beta.xonotic.org '
        set -e;
-       s0=`date -d "now - 7 days - 12 hours" +%s`;
+       s0=`date -d "now - 30 days - 12 hours" +%s`;
        s00=`date -d "now - 60 days - 12 hours" +%s`;
        for X in * */*; do
                [ -f "$X" ] || continue;
@@ -57,6 +57,7 @@ test -z "$RELEASETYPEDIR" && ssh autobuild-release-uploader@beta.xonotic.org '
                [ x"$d" != x"latest" ] || continue;
                w=`date -d $d +%w`;
                s=`date -d $d +%s`;
+               w=$(($w % 2));
                if [ "$w" -ne 0 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
                        rm -f "$X";
                fi;