diff --git a/todo.sh b/todo.sh index 1e6d83e..f9997d8 100755 --- a/todo.sh +++ b/todo.sh @@ -307,6 +307,9 @@ TODOTXT_DATE_ON_ADD=${TODOTXT_DATE_ON_ADD:-0} export TODOTXT_VERBOSE TODOTXT_PLAIN TODOTXT_CFG_FILE TODOTXT_FORCE TODOTXT_PRESERVE_LINE_NUMBERS TODOTXT_AUTO_ARCHIVE TODOTXT_DATE_ON_ADD +TODO_SH="$0" +export TODO_SH + # === SANITY CHECKS (thanks Karl!) === [ -r "$TODOTXT_CFG_FILE" ] || die "Fatal error: Cannot read configuration file $TODOTXT_CFG_FILE"