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
Loading
Please register or sign in to comment