From 264b7363aa7e47a7868b91038a0578970bc19c1f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 18 Jan 2024 18:09:42 +0900 Subject: [PATCH] Preserve spaces in messages [ci skip] --- tool/missing-baseruby.bat | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tool/missing-baseruby.bat b/tool/missing-baseruby.bat index d5da5e1c72..9b65e79cfc 100755 --- a/tool/missing-baseruby.bat +++ b/tool/missing-baseruby.bat @@ -1,6 +1,15 @@ : " -@echo off +@echo off || ( + :warn + echo>&2.%~1 + goto :eof + :abort + exit /b 1 +) : " -echo>&2 executable host ruby is required. use --with-baseruby option. -echo>&2 Note that BASERUBY must be Ruby 2.7.0 or later. -exit 1 +: ; call:warn() { echo "$1" >&2; } +: ; call:abort () { exit 1; } + +call:warn "executable host ruby is required. use --with-baseruby option." +call:warn "Note that BASERUBY must be Ruby 2.7.0 or later." +call:abort