From 86f05289d8fb50875d58ed491380bb8b4097d4eb Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 18 Mar 2021 17:09:31 -0700 Subject: Add `-o pipefail` to shell scripts (#3706) This means that if any command in a pipelines fails the whole pipeline will also fail. --- scripts/clang-tidy-diff.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/clang-tidy-diff.sh') diff --git a/scripts/clang-tidy-diff.sh b/scripts/clang-tidy-diff.sh index 1bed470cd..230764abe 100755 --- a/scripts/clang-tidy-diff.sh +++ b/scripts/clang-tidy-diff.sh @@ -1,6 +1,7 @@ #!/bin/bash set -o errexit +set -o pipefail if [ -n "$GITHUB_BASE_REF" ]; then BRANCH="origin/$GITHUB_BASE_REF" -- cgit v1.2.3