#!/usr/bin/env bash set -e cd "$(dirname -- "$(readlink -f -- "$0")")" if ! [[ -x .git/hooks/post-commit ]]; then ln -sf bin/post-commit .git/hooks/post-commit fi