Unverified Commit c8850159 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Fix download Dart DK step to work for paths with apostrophes (#15137)

Fixes https://github.com/flutter/flutter/issues/15136
parent fe334e16
...@@ -88,7 +88,10 @@ GOTO :after_subroutine ...@@ -88,7 +88,10 @@ GOTO :after_subroutine
:do_sdk_update_and_snapshot :do_sdk_update_and_snapshot
ECHO Checking Dart SDK version... ECHO Checking Dart SDK version...
CALL PowerShell.exe -ExecutionPolicy Bypass -Command "& '%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
SET "update_dart_bin=!update_dart_bin:'=''!"
CALL PowerShell.exe -ExecutionPolicy Bypass -Command "& '%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