From 1095c3e645c2a80a3648570af31af0b26490a9b1 Mon Sep 17 00:00:00 2001 From: deoren Date: Sun, 28 Jan 2018 01:12:16 -0600 Subject: [PATCH] Enable pipefail flag This is to force early exit if any command in a pipeline fails instead of allowing the last exit code in the pipeline from determining overall success/failure. Not directly related, but this should prove useful in helping to narrow down the specific cause of invalid patch reports as noted on the related ticket. refs whyaskwhy/email-updates#9 --- email_updates.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/email_updates.sh b/email_updates.sh index 9ad65f9..9a78d5e 100644 --- a/email_updates.sh +++ b/email_updates.sh @@ -6,6 +6,12 @@ set -u # Exit if any statement returns a non-true value set -e +# Exit if ANY command in a pipeline fails instead of allowing the exit code +# of later commands in the pipeline to determine overall success +set -o pipefail + + + # Official project URL: https://github.com/WhyAskWhy/email-updates