From 5e71728cda6fdfe07aa19769ccedac497e34871c Mon Sep 17 00:00:00 2001 From: Paul Mansfield Date: Fri, 4 Sep 2009 13:37:07 +0100 Subject: [PATCH] Added a new variable $TODO_FULL_SH This gives access to the full path of the script. It may prove useful for addon developers to rerun todo.sh from within their addons, in order to populate variables for context, projects etc. As we have the config and actions directory available via variables, this is a missing piece. --- todo.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/todo.sh b/todo.sh index 4750bb1..22d5285 100755 --- a/todo.sh +++ b/todo.sh @@ -17,9 +17,10 @@ EndVersion exit 1 } -# Set script name early. +# Set script name and full path early. TODO_SH=$(basename "$0") -export TODO_SH +TODO_FULL_SH="$0" +export TODO_SH TODO_FULL_SH oneline_usage="$TODO_SH [-fhpantvV] [-d todo_config] action [task_number] [task_description]"