From: Chris Jaekl Date: Sat, 12 Dec 2015 07:46:21 +0000 (+0900) Subject: If a build/test error occurs, treat it as an error X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=20766c2e2c095962185012dec9292add2f70ff43;p=cfb.git If a build/test error occurs, treat it as an error --- diff --git a/cov.sh b/cov.sh index ba25745..fd41983 100755 --- a/cov.sh +++ b/cov.sh @@ -1,4 +1,8 @@ #!/bin/bash + +set -o nounset ## (set -u) error exit on attempts to deref undefined variable +set -o errexit ## (set -e) error exit if subcommand returns nonzero + CFB_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" INSTR_DIR="${CFB_ROOT}/../instr"