diff options
author | Lim Chun Leng <spring_cold@hotmail.com> | 2022-11-25 11:38:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 11:38:49 +0100 |
commit | 87327286d51e8f776e27baadb1eafc3b5382c7f1 (patch) | |
tree | d72f88797cd0c589574711758b7533905ad482ac | |
parent | fix typo (#1456) (diff) | |
download | forgejo-act-87327286d51e8f776e27baadb1eafc3b5382c7f1.tar.xz forgejo-act-87327286d51e8f776e27baadb1eafc3b5382c7f1.zip |
Fix shellcommand error on sh shell (#1464)
Co-authored-by: Lim Chun Leng <limchunleng@gmail.com>
-rw-r--r-- | pkg/model/workflow.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/model/workflow.go b/pkg/model/workflow.go index 4e1d349..f567a1f 100644 --- a/pkg/model/workflow.go +++ b/pkg/model/workflow.go @@ -495,7 +495,7 @@ func (s *Step) ShellCommand() string { case "python": shellCommand = "python {0}" case "sh": - shellCommand = "sh -e -c {0}" + shellCommand = "sh -e {0}" case "cmd": shellCommand = "%ComSpec% /D /E:ON /V:OFF /S /C \"CALL \"{0}\"\"" case "powershell": |