Adjust autobuild retention again

This commit is contained in:
bones_was_here 2024-08-28 23:17:13 +10:00
parent 773a0b8978
commit a9839e9fc6
No known key found for this signature in database
GPG Key ID: 982FE90EDA930528

View File

@ -57,8 +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
if [ "$w" -ne 0 -a "$w" -ne 6 -a "$s" -lt "$s0" -o "$s" -lt "$s00" ]; then
rm -f "$X";
fi;
done