From 56f26b858aea717fc9596e9a2c4c43729957b5fd Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 1 Nov 2019 11:48:54 -0700 Subject: [PATCH] fix powershell LastExitCode on windows --- engine/compiler/shell/powershell/powershell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } `