pipefail
A bash mode (set -o pipefail): a pipeline returns the code of a failed stage; without it, the code of the last stage, even if an earlier one failed.
A bash mode (set -o pipefail): a pipeline returns the code of a failed stage; without it, the code of the last stage, even if an earlier one failed.