Add `set -e` to top of `proof` and `cibuild`

Exit immediately on any non-zero exit code
This commit is contained in:
Alfred Xing 2014-07-16 13:13:45 -07:00
parent b48123c1e1
commit 8e3ad082e2
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#! /bin/bash #! /bin/bash
set -e
script/branding script/branding
script/proof script/proof
script/test script/test

View File

@ -3,6 +3,8 @@
# Usage: # Usage:
# script/proof # script/proof
set -e
git diff --name-only origin $(git log --pretty=format:"%h" -2 | tail -1) | grep '^site/' || { git diff --name-only origin $(git log --pretty=format:"%h" -2 | tail -1) | grep '^site/' || {
echo "No site files changed. We'll skip proofing." echo "No site files changed. We'll skip proofing."
exit 0 exit 0