Allow cipd.ps1 execution even if it was fetched from depot_tools.zip.

Windows keeps track of files downloaded from the Internet and powershell by
default refuses to execute them (even with RemoteSigned policy). We need to
explicitly unblock the file first.

Note: it requires Powershell >= 3.0.

R=dpranke@chromium.org, iannucci@chromium.org
BUG=663843

Change-Id: Id681f4058f906fa4782a360be184d132d837ae78
Reviewed-on: https://chromium-review.googlesource.com/424327
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
changes/27/424327/2
Vadim Shtayura 8 years ago committed by Commit Bot
parent e9c794ea4e
commit 15f122ee64

@ -3,4 +3,5 @@
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.
powershell -NoProfile Unblock-File -Path "%~dp0\cipd.ps1"
powershell -NoProfile -ExecutionPolicy RemoteSigned -File "%~dp0\cipd.ps1" %*

Loading…
Cancel
Save