#!/bin/bash if [[ "$(grep -c "COMMIT_BLOCKED" $1)" -gt 0 ]]; then echo "FAILED: Unresolved errors - aborting the commit." echo "The message of your attempted commit was:" cat $1 exit 1 fi exit 0