From 7a4d11812d34758ac3c51132a89ffe5fc4957804 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Sat, 14 Jan 2012 14:58:58 +0100 Subject: [PATCH] Simplify writing of report line. --- todo.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/todo.sh b/todo.sh index b8b476f..83f2502 100755 --- a/todo.sh +++ b/todo.sh @@ -1222,9 +1222,7 @@ note: PRIORITY must be anywhere from A to Z." TOTAL=$( sed -n '$ =' "$TODO_FILE" ) TDONE=$( sed -n '$ =' "$DONE_FILE" ) - TECHO=$(echo $(date +%Y-%m-%d-%T); echo ' '; echo ${TOTAL:-0}; echo ' '; - echo ${TDONE:-0}) - echo $TECHO >> "$REPORT_FILE" + echo "$(date +%Y-%m-%d-%T) ${TOTAL:-0} ${TDONE:-0}" >> "$REPORT_FILE" [ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: Report file updated." sed -ne '$p' "$REPORT_FILE" ;;