#!/usr/bin/env bash

set -o errexit
set -o pipefail
set -o nounset

MSG="The following files have been modified:"
dirty=$(git ls-files --modified)

if [[ $dirty ]]; then
    echo $MSG
    echo $dirty
    git diff
    exit 1
else
    exit 0
fi
