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" ;;