From a6866599857565aaf38198ed77a363630c184c04 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Sat, 14 Jan 2012 14:41:58 +0100 Subject: [PATCH] Remove inactive broken report header. This was meant to write a report header on the initial report run, but as it mistakenly used TODO_FILE instead of REPORT_FILE, it was inactive, and also missing in the tests. Let's just remove it; the format is simple, anyway. --- todo.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/todo.sh b/todo.sh index ee5a3f1..a4e7b2d 100755 --- a/todo.sh +++ b/todo.sh @@ -1191,11 +1191,6 @@ note: PRIORITY must be anywhere from A to Z." sed '/^x /!d' "$TODO_FILE" >> "$DONE_FILE" sed -i.bak '/^x /d' "$TODO_FILE" - NUMLINES=$( sed -n '$ =' "$TODO_FILE" ) - if [ ${NUMLINES:-0} = "0" ]; then - echo "datetime todos dones" >> "$REPORT_FILE" - fi - #now report TOTAL=$( sed -n '$ =' "$TODO_FILE" ) TDONE=$( sed -n '$ =' "$DONE_FILE" ) TECHO=$(echo $(date +%Y-%m-%d-%T); echo ' '; echo ${TOTAL:-0}; echo ' ';