#!/bin/sh # Check if fix-whitespace is installed, and if so, run it. if ! command -v fix-whitespace &> /dev/null then echo "Please install fix-whitespace (see README.md)" exit else echo "Checking for whitespace violations..." fix-whitespace --check fi