mirror of https://github.com/sbt/sbt.git
fix: Use goto :eof instead of @endlocal/exit for --version in sbt.bat (#8717)
Using goto :eof is the standard way to exit batch scripts and ensures proper cleanup. The previous @endlocal/exit approach may have caused hangs in some scenarios.
This commit is contained in:
parent
ac95afb145
commit
f7c085ff75
|
|
@ -628,8 +628,7 @@ if !sbt_args_print_version! equ 1 (
|
||||||
echo.
|
echo.
|
||||||
echo [info] sbt runner (sbt-the-batch-script) is a runner to run any declared version of sbt.
|
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.
|
echo [info] Actual version of the sbt is declared using project\build.properties for each build.
|
||||||
@endlocal
|
goto :end
|
||||||
exit /B 0
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if !run_native_client! equ 1 (
|
if !run_native_client! equ 1 (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue