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