Unverified Commit 63b24639 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Unblock PowerShell Script before execution (#17658)

parent ce6fbeb5
...@@ -91,7 +91,7 @@ GOTO :after_subroutine ...@@ -91,7 +91,7 @@ GOTO :after_subroutine
SET update_dart_bin=%FLUTTER_ROOT%/bin/internal/update_dart_sdk.ps1 SET update_dart_bin=%FLUTTER_ROOT%/bin/internal/update_dart_sdk.ps1
REM Escape apostrophes from the executable path REM Escape apostrophes from the executable path
SET "update_dart_bin=!update_dart_bin:'=''!" 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" ( IF "%ERRORLEVEL%" NEQ "0" (
ECHO Error: Unable to update Dart SDK. Retrying... ECHO Error: Unable to update Dart SDK. Retrying...
timeout /t 5 /nobreak timeout /t 5 /nobreak
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment