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 <ginatrapani@gmail.com>
This commit is contained in:
Dave Hein
2009-04-07 09:31:06 +08:00
committed by Gina Trapani
parent f1caecec4e
commit 42e1a658d6

View File

@@ -211,9 +211,9 @@ EndHelp
echo "" echo ""
for action in "$TODO_ACTIONS_DIR/*" for action in "$TODO_ACTIONS_DIR/*"
do do
if [ -x $action ] if [ -x "$action" ]
then then
$action usage "$action" usage
fi fi
done done
echo "" echo ""