From 376d7bdac6096a97b3cad41eafbfd0c46e02c914 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 25 Mar 2021 20:10:41 -0400 Subject: [PATCH] fix: ignore set pipefail errors when DOKKU_SHELL is set to sh --- plugins/app-json/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/app-json/functions.go b/plugins/app-json/functions.go index 65bc8bd3a..c8b3f58f0 100644 --- a/plugins/app-json/functions.go +++ b/plugins/app-json/functions.go @@ -26,7 +26,7 @@ func constructScript(command string, shell string, isHerokuishImage bool, isCnbI return words } - script := []string{"set -eo pipefail;"} + script := []string{"set -e;", "set -o pipefail || true;"} if os.Getenv("DOKKU_TRACE") == "1" { script = append(script, "set -x;") }