mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-31 19:43:45 +00:00
add nushell support to local backend (#5043)
This commit is contained in:
@@ -54,6 +54,8 @@ func (e *local) genCmdByShell(shell string, cmdList []string) (args []string, er
|
||||
script += fmt.Sprintf("echo %s\n%s || exit $status\n", strings.TrimSpace(shellescape.Quote("+ "+cmd)), cmd)
|
||||
}
|
||||
return []string{"-c", script}, nil
|
||||
case "nu":
|
||||
return []string{"--commands", script}, nil
|
||||
case "powershell", "pwsh":
|
||||
// cspell:disable-next-line
|
||||
return []string{"-noprofile", "-noninteractive", "-c", "$ErrorActionPreference = \"Stop\"; " + script}, nil
|
||||
|
Reference in New Issue
Block a user