From 874cefad9bd636671c87336ad470958c9ad26a43 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Wed, 28 Dec 2022 15:41:46 +0000 Subject: [PATCH] Powershell: Use `WaitForExit` instead of `-Wait` --- x.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x.ps1 b/x.ps1 index 81b98919f43..8f2d724a8d0 100755 --- a/x.ps1 +++ b/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 } }