From 0c8c4e722655adb78c4431a5785af6388c2a2d90 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 17 May 2024 00:02:39 +0100 Subject: [PATCH] bin/rollup: Fix offset-by-one year bug. --- bin/rollup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/rollup b/bin/rollup index 4955761..f620bcd 100755 --- a/bin/rollup +++ b/bin/rollup @@ -5,8 +5,8 @@ last=nil flush () { case $last in nil) return ;; esac - (cd tmp/rollup/all && tar cfz - .) >tmp/rollup/$year-all.tgz - mv tmp/rollup/$year-all.tgz archive/ + (cd tmp/rollup/all && tar cfz - .) >tmp/rollup/$last-all.tgz + mv tmp/rollup/$last-all.tgz archive/ rm -f archive/$last-??-??T??:??:??Z.tgz rm -rf tmp/rollup/all } -- 2.11.0