From 42e1a658d60c96cce790d50f639397a48cc259f2 Mon Sep 17 00:00:00 2001 From: Dave Hein Date: Tue, 7 Apr 2009 09:31:06 +0800 Subject: [PATCH] Add quotes around $action to handle cases where todo.actions.d path includes embedded spaces. There were a couple places where $action was used without quotes that caused a problem if the .todo.actions.d had a parent directory path that included spaces (e.g. /cygdrive/c/Documents\ and\ Settings/jo-user). This was in the section that calls the addons with the 'usage' arg. Signed-off-by: Gina Trapani --- todo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todo.sh b/todo.sh index 300c640..0f45da7 100755 --- a/todo.sh +++ b/todo.sh @@ -211,9 +211,9 @@ EndHelp echo "" for action in "$TODO_ACTIONS_DIR/*" do - if [ -x $action ] + if [ -x "$action" ] then - $action usage + "$action" usage fi done echo ""