Commit 29c2afdb authored by Tobias Hilbrich's avatar Tobias Hilbrich Committed by Commit Bot

Fix hanging powershell

Powershell can try to read additional commands from stdin. The `< nul` makes
sure it reads an EOF and properly returns.

The motivation for this change was a hanging WebRTC build job on an automated
build machine.

R=iannucci@chromium.org, vadimsh@chromium.org

Details:
https://stackoverflow.com/questions/2041799/powershell-script-gets-stuck-doesnt-exit-when-called-from-batch-file
Bug:
Change-Id: I51df3927644ca3a7e212089e0c414e2e8eb0c02a
Reviewed-on: https://chromium-review.googlesource.com/549317Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
parent afd52777
...@@ -9,4 +9,4 @@ ...@@ -9,4 +9,4 @@
:: in the file's properties dialog. :: in the file's properties dialog.
echo.>"%~dp0\cipd.ps1:Zone.Identifier" echo.>"%~dp0\cipd.ps1:Zone.Identifier"
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "%~dp0\cipd.ps1" %* powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "%~dp0\cipd.ps1" %* < nul
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment