From 0d5904658e7e5a0b4b03b1da291c7568727f9261 Mon Sep 17 00:00:00 2001 From: Paul Mansfield Date: Mon, 21 Sep 2009 03:17:10 +0100 Subject: [PATCH] Portability fixes * Removed last echo -e instances, no support in OSX --- todo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todo.sh b/todo.sh index 980283e..2c38de4 100755 --- a/todo.sh +++ b/todo.sh @@ -746,7 +746,7 @@ case $action in #it's all good, continue sed -i.bak -e $item"s/^(.) //" "$TODO_FILE" NEWTODO=$(sed "$item!d" "$TODO_FILE") - [ $TODOTXT_VERBOSE -gt 0 ] && echo -e "`echo "$item: $NEWTODO"`" + [ $TODOTXT_VERBOSE -gt 0 ] && echo "`echo "$item: $NEWTODO"`" [ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: $item deprioritized." cleanup else @@ -952,7 +952,7 @@ note: PRIORITY must be anywhere from A to Z." #it's all good, continue sed -i.bak -e $item"s/^(.) //" -e $item"s/^/($newpri) /" "$TODO_FILE" NEWTODO=$(sed "$item!d" "$TODO_FILE") - [ $TODOTXT_VERBOSE -gt 0 ] && echo -e "`echo "$item: $NEWTODO"`" + [ $TODOTXT_VERBOSE -gt 0 ] && echo "`echo "$item: $NEWTODO"`" [ $TODOTXT_VERBOSE -gt 0 ] && echo "TODO: $item prioritized ($newpri)." cleanup else