Skip to content

Commit

Permalink
Powershell: Use WaitForExit instead of -Wait
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Dec 28, 2022
1 parent 6a20f7d commit 874cefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ foreach ($python in "py", "python3", "python", "python2") {
# Use python3, not python2
$xpy_args = @("-3") + $xpy_args
}
$process = Start-Process -NoNewWindow -Wait -PassThru $python $xpy_args
$process = Start-Process -NoNewWindow -PassThru $python $xpy_args
$process.WaitForExit()
Exit $process.ExitCode
}
}
Expand Down

0 comments on commit 874cefa

Please sign in to comment.