bin/rollup: Fix offset-by-one year bug.
[ca] / bin / rollup
index 4955761..f620bcd 100755 (executable)
@@ -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
 }