From 6bc374c5f280e74debf30ea853112cc790ab0dca Mon Sep 17 00:00:00 2001 From: "David A. Harding" Date: Wed, 11 Mar 2009 17:54:25 -0400 Subject: [PATCH] Revert "Set ls As the Default Action" This reverts commit 87959a8aa8cdc91c83688ae7809518d3b77bd522. --- todo.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/todo.sh b/todo.sh index 5ae5f45..67c3c75 100755 --- a/todo.sh +++ b/todo.sh @@ -162,7 +162,6 @@ help() TODOTXT_PLAIN=1 is same as option -p TODOTXT_DATE_ON_ADD=1 is same as option -t TODOTXT_VERBOSE=1 is same as option -v - TODOTXT_DEFAULT_ACTION="ls" default action EndHelp if [ -d "$HOME/.todo.actions.d" ] @@ -320,12 +319,7 @@ export TODO_SH . "$TODOTXT_CFG_FILE" -## Run the default action if no action called on command line -if [ -z "$1" ] -then - exec $0 ${TODOTXT_DEFAULT_ACTION:-ls} -fi - +[ -z "$1" ] && usage [ -d "$TODO_DIR" ] || die "Fatal Error: $TODO_DIR is not a directory" cd "$TODO_DIR" || die "Fatal Error: Unable to cd to $TODO_DIR"