#!/bin/bash HOOKDIR=$(dirname $0) # Load functions . $HOOKDIR/irker . $HOOKDIR/slack channels=$(git config --get irker.channels) webhook_url=$(git config --get hooks.slack.webhook-url) while read line; do set -- $line if [ -n "$channels" ]; then notify_irker $* fi if [ -n "$webhook_url" ]; then notify_slack $* fi RET=$? done exit $RET