mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Powershell: Use WaitForExit
instead of -Wait
This commit is contained in:
parent
6a20f7df57
commit
874cefad9b
3
x.ps1
3
x.ps1
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user