Align report order with other actions.

Like "add" or "do", first the object, then (in verbose mode) the status message is printed.
This commit is contained in:
Ingo Karkat
2012-01-14 15:10:22 +01:00
parent d0205b48a6
commit d46adadb1d
2 changed files with 2 additions and 22 deletions

View File

@@ -1223,8 +1223,8 @@ note: PRIORITY must be anywhere from A to Z."
TOTAL=$( sed -n '$ =' "$TODO_FILE" )
TDONE=$( sed -n '$ =' "$DONE_FILE" )
echo "$(date +%Y-%m-%dT%T) ${TOTAL:-0} ${TDONE:-0}" >> "$REPORT_FILE"
[ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: Report file updated."
sed -ne '$p' "$REPORT_FILE"
[ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: Report file updated."
;;
"deduplicate" )