From d65a5b4c2fa718a4c256d45173f14f90bb04090a Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Sun, 6 Nov 2022 09:29:18 +0100 Subject: [PATCH] for #1235: Use `set -euo pipefail` instead of `set -e` As per @horazont's feedback: `-u` shouts at you if you use an undefined variable (very useful to catch typos) and `-o pipefail` improves error handling by also failing if any of the commands in a pipe fail. --- tools/validate-xep0001-conformance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/validate-xep0001-conformance.sh b/tools/validate-xep0001-conformance.sh index e5194141..cf073165 100755 --- a/tools/validate-xep0001-conformance.sh +++ b/tools/validate-xep0001-conformance.sh @@ -12,7 +12,7 @@ # # requires: bash, xmllint -set -e +set -euo pipefail VALIDATION_RESULT=0