From 02dc030225659b36a972e84302ebae717205e629 Mon Sep 17 00:00:00 2001 From: "David A. Harding" Date: Thu, 19 Mar 2009 07:06:07 -0400 Subject: [PATCH] Putting Quotes Around $TODO_TMP Suggested by Gina. --- todo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.sh b/todo.sh index 93ecc37..f1b3645 100755 --- a/todo.sh +++ b/todo.sh @@ -325,7 +325,7 @@ export TODO_SH [ -d "$TODO_DIR" ] || die "Fatal Error: $TODO_DIR is not a directory" ( cd "$TODO_DIR" ) || die "Fatal Error: Unable to cd to $TODO_DIR" -[ -w "$TMP_FILE" ] || echo -n > $TMP_FILE || die "Fatal Error: Unable to write to $TMP_FILE" +[ -w "$TMP_FILE" ] || echo -n > "$TMP_FILE" || die "Fatal Error: Unable to write to $TMP_FILE" [ -f "$TODO_FILE" ] || cp /dev/null "$TODO_FILE" [ -f "$DONE_FILE" ] || cp /dev/null "$DONE_FILE" [ -f "$REPORT_FILE" ] || cp /dev/null "$REPORT_FILE"