1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Detect errors on the left-hand side of a pipeline

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2020-03-28 18:50:49 +01:00
parent ce266c48bb
commit 3664780f98

View File

@ -113,8 +113,9 @@
#### Initialization and command line parsing #### Initialization and command line parsing
################################################################ ################################################################
# Abort on errors (and uninitialised variables) # Abort on errors (even on the left-hand side of a pipe).
set -eu # Treat uninitialised variables as errors.
set -e -o pipefail -u
pre_check_environment () { pre_check_environment () {
if [ -d library -a -d include -a -d tests ]; then :; else if [ -d library -a -d include -a -d tests ]; then :; else