diff --git a/bin/dart.bat b/bin/dart.bat index 4927aaefa7e..96f8599b93c 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 168c1537c36..521ae7a72f0 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 efc7180dab9..bceec2f18f2 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%