Fix shellcommand error on sh shell (#1464)

Co-authored-by: Lim Chun Leng <limchunleng@gmail.com>
This commit is contained in:
Lim Chun Leng 2022-11-25 19:38:49 +09:00 committed by GitHub
parent 3553b2697c
commit 87327286d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -495,7 +495,7 @@ func (s *Step) ShellCommand() string {
case "python": case "python":
shellCommand = "python {0}" shellCommand = "python {0}"
case "sh": case "sh":
shellCommand = "sh -e -c {0}" shellCommand = "sh -e {0}"
case "cmd": case "cmd":
shellCommand = "%ComSpec% /D /E:ON /V:OFF /S /C \"CALL \"{0}\"\"" shellCommand = "%ComSpec% /D /E:ON /V:OFF /S /C \"CALL \"{0}\"\""
case "powershell": case "powershell":