Detect errors on the left-hand side of a pipeline
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
ce266c48bb
commit
3664780f98
1 changed files with 3 additions and 2 deletions
|
@ -113,8 +113,9 @@
|
|||
#### Initialization and command line parsing
|
||||
################################################################
|
||||
|
||||
# Abort on errors (and uninitialised variables)
|
||||
set -eu
|
||||
# Abort on errors (even on the left-hand side of a pipe).
|
||||
# Treat uninitialised variables as errors.
|
||||
set -e -o pipefail -u
|
||||
|
||||
pre_check_environment () {
|
||||
if [ -d library -a -d include -a -d tests ]; then :; else
|
||||
|
|
Loading…
Reference in a new issue