From 5ededcb5f2d1dac9b6dd6346a72ca402b82e6670 Mon Sep 17 00:00:00 2001 From: Robert Iannucci Date: Wed, 11 Jan 2017 19:59:08 -0800 Subject: [PATCH] Clear Zone.Identifier to allow depot_tools.zip bootstrap BUG=680274 Change-Id: I47fd8d7a5380aca49c873006c4f66732b21bee37 Reviewed-on: https://chromium-review.googlesource.com/427323 Reviewed-by: Vadim Shtayura Commit-Queue: Robbie Iannucci --- cipd.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cipd.bat b/cipd.bat index 6a65238b1f..e5be7e99f9 100644 --- a/cipd.bat +++ b/cipd.bat @@ -3,4 +3,10 @@ :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. +:: To allow this powershell script to run if it was a byproduct of downloading +:: and unzipping the depot_tools.zip distribution, we clear the Zone.Identifier +:: alternate data stream. This is equivalent to clicking the "Unblock" button +:: in the file's properties dialog. +echo.>"%~dp0\cipd.ps1:Zone.Identifier" + powershell -NoProfile -ExecutionPolicy RemoteSigned -File "%~dp0\cipd.ps1" %*