1
0
Fork 0

task: Add hooks directory

This commit is contained in:
Jeremy Kaplan 2020-02-08 19:59:53 -08:00
commit 61ca8110a0
2 changed files with 14 additions and 0 deletions

12
task/hooks/on-exit-sync.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
count=0
while read -r; do
count=$((count + 1))
done
if ((count > 0)); then
exec task sync | tee ~/.task/sync_hook.log
else
echo "No changes to sync"
fi