diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2021-01-01 13:27:54 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2021-01-01 13:27:54 +0100 |
commit | 674ee9d31013547039349349242fec0fc787af70 (patch) | |
tree | d5ca87922c2264c91da0fecdf66788f6410a6b2f /.task/hooks/on-exit_git | |
parent | 27b3ff0800ed9002631291f3e0790ed5a470be74 (diff) |
taskwarrior stuff
Diffstat (limited to '.task/hooks/on-exit_git')
-rwxr-xr-x | .task/hooks/on-exit_git | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.task/hooks/on-exit_git b/.task/hooks/on-exit_git new file mode 100755 index 0000000..833be0a --- /dev/null +++ b/.task/hooks/on-exit_git @@ -0,0 +1,8 @@ +#!/bin/bash +if [[ $2 == *"add"* ]] || [[ $2 == *"done"* ]] ; then + wget -q --spider http://tombarrett.xyz + if [ $? -eq 0 ] ; then + git -C ~/.task/ commit -a -m "$2" + git -C ~/.task/ push + fi +fi |