mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-13 16:00:07 +00:00
add nushell support to local backend (#5043)
This commit is contained in:
parent
a0844746ab
commit
47e6d159d1
@ -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)
|
script += fmt.Sprintf("echo %s\n%s || exit $status\n", strings.TrimSpace(shellescape.Quote("+ "+cmd)), cmd)
|
||||||
}
|
}
|
||||||
return []string{"-c", script}, nil
|
return []string{"-c", script}, nil
|
||||||
|
case "nu":
|
||||||
|
return []string{"--commands", script}, nil
|
||||||
case "powershell", "pwsh":
|
case "powershell", "pwsh":
|
||||||
// cspell:disable-next-line
|
// cspell:disable-next-line
|
||||||
return []string{"-noprofile", "-noninteractive", "-c", "$ErrorActionPreference = \"Stop\"; " + script}, nil
|
return []string{"-noprofile", "-noninteractive", "-c", "$ErrorActionPreference = \"Stop\"; " + script}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user