diff --git a/engine/compiler/shell/powershell/powershell.go b/engine/compiler/shell/powershell/powershell.go index 0de71d1..01b194d 100644 --- a/engine/compiler/shell/powershell/powershell.go +++ b/engine/compiler/shell/powershell/powershell.go @@ -55,5 +55,5 @@ $erroractionpreference = "stop" const traceScript = ` echo %s %s -if ($LastExitCode -ne 0) { exit $LastExitCode } +if ($LastExitCode -gt 0) { exit $LastExitCode } `