#!/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 WARNINGS=y warn() { if [ "$WARNINGS" ] then printf '%s: Warning: %s\n' "$0" "$*" >&2 fi } GIT_WORK_TREE=. git checkout -f master -- authorized_keys.d/\*