1
0
Fork 0
dotfiles/task/hooks/on-exit-sync.sh

12 lines
186 B
Bash
Executable file

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