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/549317
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
changes/17/549317/2
Tobias Hilbrich 8 years ago committed by Commit Bot
parent afd5277778
commit 29c2afdb30

@ -9,4 +9,4 @@
:: in the file's properties dialog.
echo.>"%~dp0\cipd.ps1:Zone.Identifier"
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "%~dp0\cipd.ps1" %*
powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "%~dp0\cipd.ps1" %* < nul

Loading…
Cancel
Save