From 92212085c62b5f0fa7c0bebbf8eca081b6dcc096 Mon Sep 17 00:00:00 2001
From: Paul Gier <pgier@redhat.com>
Date: Wed, 5 Feb 2020 16:43:32 -0600
Subject: [PATCH] Makefile: set bash -o pipefail

Fails if any command in a pipe fails.  Similar to the
prometheus-operator Makefile.
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index e4f52e16..d63f68b2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+SHELL=/bin/bash -o pipefail
+
 JSONNET_ARGS := -n 2 --max-blank-lines 2 --string-style s --comment-style s
 ifneq (,$(shell which jsonnetfmt))
 	JSONNET_FMT_CMD := jsonnetfmt
-- 
GitLab