From 8567a90e4cbc648c5314ec07feb452fcbaaab98e Mon Sep 17 00:00:00 2001 From: Gina Trapani Date: Sun, 5 Apr 2009 10:49:06 -0700 Subject: [PATCH] Bugfix: Replace echoes old todo before new todo. --- todo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/todo.sh b/todo.sh index a2ecca2..3bbbd5f 100755 --- a/todo.sh +++ b/todo.sh @@ -833,6 +833,7 @@ note: PRIORITY must be anywhere from A to Z." sed -i.bak $item" s|^.*|$input|" "$TODO_FILE" [ $TODOTXT_VERBOSE -gt 0 ] && NEWTODO=$(head -$item "$TODO_FILE" | tail -1) + [ $TODOTXT_VERBOSE -gt 0 ] && echo "$item: $todo" [ $TODOTXT_VERBOSE -gt 0 ] && echo "replaced with" [ $TODOTXT_VERBOSE -gt 0 ] && echo "$item: $NEWTODO" cleanup;;