fix: Use goto :end for proper cleanup in --version handler (#8717)

Use goto :end instead of goto :eof to ensure @endlocal is called
and the script exits cleanly. This should fix the Windows test hang
when sbtn calls the script.
This commit is contained in:
Eruis2579 2026-02-10 11:03:08 +01:00
parent 14d92b76eb
commit 1ae2d3af57
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ if !sbt_args_print_version! equ 1 (
echo.
echo [info] sbt runner (sbt-the-batch-script) is a runner to run any declared version of sbt.
echo [info] Actual version of the sbt is declared using project\build.properties for each build.
goto :eof
goto :end
)
if !run_native_client! equ 1 (