Merge pull request #4523 from dokku/ignore-pipefail-sh

Ignore set pipefail errors when DOKKU_SHELL is set to sh
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2021-03-25 21:39:02 -04:00
commit 3880122ef7
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ func constructScript(command string, shell string, isHerokuishImage bool, isCnbI
return words return words
} }
script := []string{"set -eo pipefail;"} script := []string{"set -e;", "set -o pipefail || true;"}
if os.Getenv("DOKKU_TRACE") == "1" { if os.Getenv("DOKKU_TRACE") == "1" {
script = append(script, "set -x;") script = append(script, "set -x;")
} }