Skip to content

Commit

Permalink
Merge pull request #54569 from garethgreenaway/2019_2_1_port_52365
Browse files Browse the repository at this point in the history
[master] Porting #52365 to master
  • Loading branch information
dwoz authored Dec 29, 2019
2 parents 5929157 + a35b217 commit ccafe09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/windows/modules/start-process-and-test-exitcode.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Function Start_Process_and_test_exitcode {
Begin { Write-Host "Executing Command: $fun $args" }

Process {
$p = Start-Process "$fun" -ArgumentList "$args" -Wait -NoNewWindow -PassThru
If ( $($p.ExitCode) -ne 0) {
Write-Error "$descr returned exitcode $($p.ExitCode). "
exit $($p.ExitCode)
$p = Start-Process "$fun" -ArgumentList "$args" -Wait -PassThru
If ($p.ExitCode -ne 0) {
Write-Error "$descr returned exitcode $p.ExitCode."
exit $p.ExitCode
}
}

Expand Down

0 comments on commit ccafe09

Please sign in to comment.