1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash # post-receive hook for Git that deploys TODO.md to my website. while read oldrev newrev ref do if [[ $ref =~ .*/master$ ]]; then if git show HEAD:TODO.md > /dev/null; then git show HEAD:TODO.md > /www/todos/cacheracer.html fi fi done