From 63b24639ffa56a78eb42e1ddb2789eee85fe5f67 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Fri, 18 May 2018 09:56:59 -0700 Subject: [PATCH] Unblock PowerShell Script before execution (#17658) --- bin/flutter.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/flutter.bat b/bin/flutter.bat index ed81a65c7ad..0c8c7c066ee 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -91,7 +91,7 @@ GOTO :after_subroutine SET update_dart_bin=%FLUTTER_ROOT%/bin/internal/update_dart_sdk.ps1 REM Escape apostrophes from the executable path SET "update_dart_bin=!update_dart_bin:'=''!" - CALL PowerShell.exe -ExecutionPolicy Bypass -Command "& '%update_dart_bin%'" + CALL PowerShell.exe -ExecutionPolicy Bypass -Command "Unblock-File -Path '%update_dart_bin%'; & '%update_dart_bin%'" IF "%ERRORLEVEL%" NEQ "0" ( ECHO Error: Unable to update Dart SDK. Retrying... timeout /t 5 /nobreak