taskwarrior/test/test_hooks/on-exit-bad
Paul Beckingham 8b28c36485 Unit Tests
- Modified the test_hooks/* scripts to use /bin/sh, which is portable. When
  using /bin/bash, Cygwin and FreeBSD silently fail.
2015-02-07 10:22:07 -05:00

20 lines
419 B
Bash

#!/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 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