#!/bin/bash if [ -f .UPDATING_COUNT ] then exit 0 fi echo "Checking word count…" ./update-count.sh if git diff --quiet --exit-code -- index.md then exit 0 fi touch .UPDATING_COUNT git commit --amend --no-edit -- README.md rm .UPDATING_COUNT