Added quotes to dirname call.

This allows the todo.sh to exist in a path with spaces.
This commit is contained in:
Archimedes Trajano
2011-02-10 15:20:12 -05:00
committed by Gina Trapani
parent 5afd734dcb
commit 0c5bdf3b0a
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
# Your todo.txt directory # Your todo.txt directory
#export TODO_DIR="/Users/gina/Documents/todo" #export TODO_DIR="/Users/gina/Documents/todo"
export TODO_DIR=`dirname $0` export TODO_DIR=`dirname "$0"`
# Your todo/done/report.txt locations # Your todo/done/report.txt locations
export TODO_FILE="$TODO_DIR/todo.txt" export TODO_FILE="$TODO_DIR/todo.txt"

View File

@@ -498,7 +498,7 @@ export SENTENCE_DELIMITERS=',.:;'
} }
[ -e "$TODOTXT_CFG_FILE" ] || { [ -e "$TODOTXT_CFG_FILE" ] || {
CFG_FILE_ALT=`dirname $0`"/todo.cfg" CFG_FILE_ALT=`dirname "$0"`"/todo.cfg"
if [ -e "$CFG_FILE_ALT" ] if [ -e "$CFG_FILE_ALT" ]
then then