summaryrefslogtreecommitdiff
path: root/.task/hooks/on-exit_git
blob: 833be0a52b4c1c4b086306fa28390dd9a951222d (plain)
1
2
3
4
5
6
7
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