Skip to content

Commit

Permalink
Bugfix: TODOTXT_DEFAULT_ACTION was not exported, now exports TODOTXT_*
Browse files Browse the repository at this point in the history
Simplify the export of TODOTXT variables by having bash construct
the export list dynamically.

Signed-off-by: Emil Sit <[email protected]>
  • Loading branch information
doegox authored and sit committed Apr 26, 2009
1 parent 701c30c commit cace5eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion todo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ TODOTXT_DEFAULT_ACTION=${TODOTXT_DEFAULT_ACTION:-}
TODOTXT_SORT_COMMAND=${TODOTXT_SORT_COMMAND:-env LC_COLLATE=C sort -f -k2}
TODOTXT_FINAL_FILTER=${TODOTXT_FINAL_FILTER:-cat}

export TODOTXT_VERBOSE TODOTXT_PLAIN TODOTXT_CFG_FILE TODOTXT_FORCE TODOTXT_PRESERVE_LINE_NUMBERS TODOTXT_AUTO_ARCHIVE TODOTXT_DATE_ON_ADD TODOTXT_SORT_COMMAND TODOTXT_FINAL_FILTER
# Export all TODOTXT_* variables
export ${!TODOTXT_@}

# Default color map
export NONE=''
Expand Down

0 comments on commit cace5eb

Please sign in to comment.