1 2 3 4 5 6 7 8
#!/bin/sh if ! [ "$DID_SELF_UPDATE" ] then GIT_WORK_TREE=. git checkout -f master -- hooks/post-receive DID_SELF_UPDATE=y exec hooks/post-receive fi echo 'Hello, world!' >&2