From e498f13bbdbfcbd1a2f08dce5cab0d902a679569 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 4 Aug 2016 12:17:22 +0200 Subject: [PATCH] Execute commands using bash -e -o pipefail --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a43237e..f7ea88c 100644 --- a/main.go +++ b/main.go @@ -137,7 +137,7 @@ func executeAndRegisterCheck(ctx context.Context, checkID string) { check := checks[checkID] start := time.Now() - cmd := exec.Command("/bin/bash", "-c", check.Command) + cmd := exec.Command("/bin/bash", "-e", "-o", "pipefail", "-c", check.Command) cmd.Stderr = os.Stderr if cfg.Verbose { cmd.Stdout = os.Stdout