Skip to content

Commit

Permalink
fix(plugin-script-powershell): wrong powershell interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Apr 4, 2024
1 parent d4ed32e commit ac5a1a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
type: io.kestra.plugin.scripts.powershell.Commands
inputFiles:
main.ps1: |
Get-ChildItem | Format-List
'Hello, World!' | Write-Output
commands:
- pwsh main.ps1
- ./main.ps1
"""
)
})
Expand Down Expand Up @@ -67,7 +67,7 @@ public class Commands extends AbstractExecScript {
)
@PluginProperty
@NotEmpty
protected List<String> interpreter = List.of("/bin/sh", "-c");
protected List<String> interpreter = List.of("pwsh", "-NoProfile", "-NonInteractive", "-Command");

@Override
protected DockerOptions injectDefaults(DockerOptions original) {
Expand Down

0 comments on commit ac5a1a2

Please sign in to comment.