Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit eac8c46d authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Propagate exit code from first failure

By default, Bash will return the exit code of the last command in a
pipeline. This means that we silently ignore errors every time we pipe
the output from one command into another.

Setting the pipefail option solves this: Bash now returns the first
non-zero exit code.

Test: n/a.
Change-Id: I40cf3f246883a02167b93884df5b30824c25726f
parent 8e96445a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment