entrypoint: avoid polluting stdout (#17125)

routes output from setup-related functions to stderr, so that stdout can
include only the output of the actual program.
This commit is contained in:
Ry Biesemeyer 2025-02-20 12:55:40 -08:00 committed by GitHub
parent e8e24a0397
commit 91258c3f98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ set params='%*'
if "%1" == "-V" goto version
if "%1" == "--version" goto version
call "%~dp0setup.bat" || exit /b 1
1>&2 (call "%~dp0setup.bat") || exit /b 1
if errorlevel 1 (
if not defined nopauseonerror (
pause

View file

@ -186,8 +186,8 @@ setup_vendored_jruby() {
}
setup() {
setup_java
setup_vendored_jruby
>&2 setup_java
>&2 setup_vendored_jruby
}
ruby_exec() {