mirror of
https://github.com/flutter/flutter
synced 2024-10-12 11:12:54 +00:00
Unblock PowerShell Script before execution (#17658)
This commit is contained in:
parent
ce6fbeb5b5
commit
63b24639ff
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue