Unblock PowerShell Script before execution (#17658)

This commit is contained in:
Michael Goderbauer
2018-05-18 09:56:59 -07:00
committed by GitHub
parent ce6fbeb5b5
commit 63b24639ff

View File

@@ -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