File tree 1 file changed +5
-6
lines changed 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ SET dart=%dart_sdk_path%\bin\dart.exe
29
29
SET pub = %dart_sdk_path% \bin\pub.bat
30
30
31
31
REM Test if Git is available on the Host
32
- where /q git || ECHO Error: Unable to find git in your PATH. && EXIT 1
32
+ where /q git || ECHO Error: Unable to find git in your PATH. && EXIT /B 1
33
33
REM Test if the flutter directory is a git clone, otherwise git rev-parse HEAD would fail
34
34
IF NOT EXIST " %flutter_root% \.git" (
35
35
ECHO Error: The Flutter directory is not a clone of the GitHub project.
36
- EXIT 1
36
+ EXIT /B 1
37
37
)
38
38
39
39
REM Ensure that bin/cache exists.
@@ -82,9 +82,8 @@ GOTO :after_subroutine
82
82
CALL PowerShell.exe -ExecutionPolicy Bypass -Command " & '%FLUTTER_ROOT% /bin/internal/update_dart_sdk.ps1'"
83
83
SET exit_code = %ERRORLEVEL%
84
84
IF %exit_code% NEQ 0 (
85
- ECHO Error: Unable to update Dart SDK.
86
- REM Do not use /B here, we want to exit out of the script, not just the subroutine
87
- EXIT %exit_code%
85
+ ECHO Error: Unable to update Dart SDK. Retrying... Press Ctrl+C to abort.
86
+ GOTO :do_sdk_update_and_snapshot
88
87
)
89
88
90
89
:do_snapshot
@@ -111,4 +110,4 @@ IF /I "%exit_code%" EQU "253" (
111
110
SET exit_code = %ERRORLEVEL%
112
111
)
113
112
114
- EXIT %exit_code%
113
+ EXIT /B %exit_code%
You can’t perform that action at this time.
0 commit comments