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

Skip to content
Commit ebd796d1 authored by Martin Geisler's avatar Martin Geisler Committed by Cherrypicker Worker
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.
(cherry picked from https://android-review.googlesource.com/q/commit:eac8c46d051747f02d3421a31c99f35a19bda5f0)
Merged-In: I40cf3f246883a02167b93884df5b30824c25726f
Change-Id: I40cf3f246883a02167b93884df5b30824c25726f
parent 274417a4
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