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
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
1 changed files with 2 additions and 1 deletions

3
x.ps1
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
}
}