From bbff2d13bb2cc157f6399b81700d66030c0d1a54 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 9 Mar 2009 07:06:58 +0800 Subject: [PATCH] Remove usage call and export TODOTXT_SH for action.d Signed-off-by: Gina Trapani --- todo.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/todo.sh b/todo.sh index 0838f4f..77243a4 100755 --- a/todo.sh +++ b/todo.sh @@ -248,7 +248,9 @@ TODOTXT_DATE_ON_ADD=${TODOTXT_DATE_ON_ADD:-0} fi } -export TODOTXT_VERBOSE TODOTXT_PLAIN TODOTXT_CFG_FILE TODOTXT_FORCE TODOTXT_PRESERVE_LINE_NUMBERS TODOTXT_AUTO_ARCHIVE TODOTXT_DATE_ON_ADD +TODOTXT_SH="$0" + +export TODOTXT_VERBOSE TODOTXT_PLAIN TODOTXT_CFG_FILE TODOTXT_FORCE TODOTXT_PRESERVE_LINE_NUMBERS TODOTXT_AUTO_ARCHIVE TODOTXT_DATE_ON_ADD TODOTXT_SH # === SANITY CHECKS (thanks Karl!) === [ -r "$TODOTXT_CFG_FILE" ] || die "Fatal error: Cannot read configuration file $TODOTXT_CFG_FILE" @@ -669,7 +671,6 @@ note: PRIORITY must be anywhere from A to Z." cleanup;; * ) - usage if [ -d "$HOME/.todo.actions.d" ]; then if [ -x "$HOME/.todo.actions.d/$action" ]; then "$HOME/.todo.actions.d/$action" "$@"