From 0c5bdf3b0ab8dcc1070ca36e91545536f41f69c8 Mon Sep 17 00:00:00 2001 From: Archimedes Trajano Date: Thu, 10 Feb 2011 15:20:12 -0500 Subject: [PATCH] Added quotes to dirname call. This allows the todo.sh to exist in a path with spaces. --- todo.cfg | 2 +- todo.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/todo.cfg b/todo.cfg index 2b3fa53..546a640 100644 --- a/todo.cfg +++ b/todo.cfg @@ -2,7 +2,7 @@ # Your todo.txt directory #export TODO_DIR="/Users/gina/Documents/todo" -export TODO_DIR=`dirname $0` +export TODO_DIR=`dirname "$0"` # Your todo/done/report.txt locations export TODO_FILE="$TODO_DIR/todo.txt" diff --git a/todo.sh b/todo.sh index 3805f98..d21caef 100755 --- a/todo.sh +++ b/todo.sh @@ -498,7 +498,7 @@ export SENTENCE_DELIMITERS=',.:;' } [ -e "$TODOTXT_CFG_FILE" ] || { - CFG_FILE_ALT=`dirname $0`"/todo.cfg" + CFG_FILE_ALT=`dirname "$0"`"/todo.cfg" if [ -e "$CFG_FILE_ALT" ] then