mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
23 lines
407 B
Bash
Executable file
23 lines
407 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# The on-exit event is triggered once, after all processing is complete.
|
|
# This hook script has no effect on processing.
|
|
|
|
# Input:
|
|
# - line of JSON for each modified task
|
|
|
|
# Output:
|
|
# - Optional feedback/error.
|
|
|
|
n=0
|
|
while read modified_task
|
|
do
|
|
n=$(($n + 1))
|
|
done
|
|
|
|
echo "on-exit: Counted $n added/modified tasks."
|
|
|
|
# Status:
|
|
# - 0: Non-JSON is feedback.
|
|
# - non-0: Non-JSON is error.
|
|
exit 0
|