From: Mark Wooding Date: Thu, 16 May 2024 23:02:39 +0000 (+0100) Subject: bin/rollup: Fix offset-by-one year bug. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/ca/commitdiff_plain/refs/heads/master?ds=sidebyside bin/rollup: Fix offset-by-one year bug. --- 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 }