Skip to content

Commit

Permalink
patch executeMultipleCommandWithEnvs when no /bin/zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Jan 25, 2023
1 parent 65f049f commit 0413059
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/packages/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0413059

Please sign in to comment.