mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
patch executeMultipleCommandWithEnvs when no /bin/zsh
This commit is contained in:
@@ -166,7 +166,10 @@ func executeMultipleCommandWithEnvs(fullCommand string, secretsCount int, env []
|
|||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
shell = [2]string{"cmd", "/C"}
|
shell = [2]string{"cmd", "/C"}
|
||||||
} else {
|
} else {
|
||||||
shell[0] = os.Getenv("SHELL")
|
currentShell := os.Getenv("SHELL")
|
||||||
|
if currentShell != "" {
|
||||||
|
shell[0] = currentShell
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.Command(shell[0], shell[1], fullCommand)
|
cmd := exec.Command(shell[0], shell[1], fullCommand)
|
||||||
|
|||||||
Reference in New Issue
Block a user