Powershell: Use WaitForExit
instead of -Wait
This commit is contained in:
parent
6a20f7df57
commit
874cefad9b
1 changed files with 2 additions and 1 deletions
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…
Add table
Reference in a new issue