mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-29 00:53:23 +02:00

* Update hooks to use `read -r` and `printf` This portably avoids any interpretation of backslash escapes by the shell. * Support running make_tc_task elsewhere * Add a test for backslashes in task descriptions
20 lines
422 B
Bash
Executable file
20 lines
422 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# The on-exit event is triggered once, after all processing is complete.
|
|
# This hooks script has no effect on processing.
|
|
|
|
# Input:
|
|
# - Read-only line of JSON for each task added/modified
|
|
while read -r modified_task
|
|
do
|
|
echo 'CHANGED TASK'
|
|
done
|
|
|
|
# Output:
|
|
# - Optional feedback/error.
|
|
echo 'FEEDBACK'
|
|
|
|
# Status:
|
|
# - 0: JSON ignored, non-JSON is feedback.
|
|
# - non-0: JSON ignored, non-JSON is error.
|
|
exit 1
|