#!/bin/sh

# The on-exit event is triggered once, after all processing is complete.
# This hooks script has no effect on processing.

# 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
