From: bones_was_here Date: Sun, 25 Feb 2024 22:00:20 +0000 (+1000) Subject: Adjust autobuild retention X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=61a1840205d8372f2bcb5589cf47aaa7bace545c;p=xonotic%2Fxonotic.git Adjust autobuild retention Signed-off-by: bones_was_here --- diff --git a/misc/infrastructure/xonotic-release-build.cron b/misc/infrastructure/xonotic-release-build.cron index 8e80bf77..f9f16dac 100755 --- a/misc/infrastructure/xonotic-release-build.cron +++ b/misc/infrastructure/xonotic-release-build.cron @@ -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;