From 61a1840205d8372f2bcb5589cf47aaa7bace545c Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Mon, 26 Feb 2024 08:00:20 +1000 Subject: [PATCH] Adjust autobuild retention Signed-off-by: bones_was_here --- misc/infrastructure/xonotic-release-build.cron | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2