Powershell: Use WaitForExit instead of -Wait

This commit is contained in:
Chris Denton
2022-12-28 15:41:46 +00:00
parent 6a20f7df57
commit 874cefad9b
+2 -1
View File
@@ -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
}
}