Give script/proof the ability to be force-run. [ci skip]

This commit is contained in:
Parker Moore 2014-09-09 20:54:27 -07:00
parent 95dd0dc479
commit 3994faaeaa
1 changed files with 5 additions and 3 deletions

View File

@ -5,10 +5,12 @@
set -e
git diff --name-only ..master | grep '^site/' || {
echo "No site files changed. We'll skip proofing."
if [[ "$1" != "-f" ]]; then
git diff --name-only ..master | grep '^site/' || {
echo "No site files changed. We'll skip proofing. Run with -f to force."
exit 0
}
}
fi
echo "Some site files have been changed! Proofing..."