mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-23 22:45:22 +00: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:
parent
7105a33906
commit
8ab2994eb5
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue