summaryrefslogtreecommitdiff
path: root/.task/hooks/on-exit_git
diff options
context:
space:
mode:
Diffstat (limited to '.task/hooks/on-exit_git')
-rwxr-xr-x.task/hooks/on-exit_git8
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