From 1b8e6b42366fe2798fdfaa0316f320fe4120705c Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Tue, 28 Jul 2020 10:19:43 -0700 Subject: [PATCH] [flutter_tools] fix exit label for batchfile (#62272) move the final_exit label to the correct script location for the flutter/dart entrypoints. --- bin/dart.bat | 3 --- bin/flutter.bat | 3 --- bin/internal/shared.bat | 3 +++ 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/dart.bat b/bin/dart.bat index 4927aaefa7..96f8599b93 100644 --- a/bin/dart.bat +++ b/bin/dart.bat @@ -32,6 +32,3 @@ REM Do not use the CALL command in the next line to execute Dart. CALL causes REM Windows to re-read the line from disk after the CALL command has finished REM regardless of the ampersand chain. "%dart%" %* & exit /B !ERRORLEVEL! - -:final_exit -EXIT /B %exit_code% diff --git a/bin/flutter.bat b/bin/flutter.bat index 168c1537c3..521ae7a72f 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -52,6 +52,3 @@ REM Do not use the CALL command in the next line to execute Dart. CALL causes REM Windows to re-read the line from disk after the CALL command has finished REM regardless of the ampersand chain. "%dart%" --disable-dart-dev --packages="%flutter_tools_dir%\.packages" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %* & exit /B !ERRORLEVEL! - -:final_exit -EXIT /B %exit_code% diff --git a/bin/internal/shared.bat b/bin/internal/shared.bat index efc7180dab..bceec2f18f 100644 --- a/bin/internal/shared.bat +++ b/bin/internal/shared.bat @@ -158,3 +158,6 @@ GOTO :after_subroutine EXIT /B :after_subroutine + +:final_exit + EXIT /B %exit_code%