From 5d34edb134cdea97f964a5e9a7621a9381ed7ea8 Mon Sep 17 00:00:00 2001 From: Rene Kita Date: Mon, 27 Mar 2023 08:02:29 +0200 Subject: [PATCH] Remove outputfile when archiving The outputfile was not overwritten when there were not entries from the new week present. --- workinghours | 1 + 1 file changed, 1 insertion(+) diff --git a/workinghours b/workinghours index 4d6612b..78fe452 100755 --- a/workinghours +++ b/workinghours @@ -318,6 +318,7 @@ newweek() echo "$start $end $sum" >> "${outputfile}.new" fi done < "${outputfile}" + rm "$outputfile" if [ "$target" != -1 ]; then target=$(echo "$target * 3600" | bc) -- 2.45.2