From 0413059fbe282e644cd9c53bb8a64ec554f495fd Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 24 Jan 2023 19:58:55 -0800 Subject: [PATCH] patch executeMultipleCommandWithEnvs when no /bin/zsh --- cli/packages/cmd/run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/packages/cmd/run.go b/cli/packages/cmd/run.go index dd1b492e5c..4c7c9782f4 100644 --- a/cli/packages/cmd/run.go +++ b/cli/packages/cmd/run.go @@ -166,7 +166,10 @@ func executeMultipleCommandWithEnvs(fullCommand string, secretsCount int, env [] if runtime.GOOS == "windows" { shell = [2]string{"cmd", "/C"} } else { - shell[0] = os.Getenv("SHELL") + currentShell := os.Getenv("SHELL") + if currentShell != "" { + shell[0] = currentShell + } } cmd := exec.Command(shell[0], shell[1], fullCommand)