summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-01-18 18:09:42 +0900
committerNobuyoshi Nakada <[email protected]>2024-01-18 18:09:42 +0900
commit264b7363aa7e47a7868b91038a0578970bc19c1f (patch)
treed9e5978e127c37615bf9de9cb6f8e7db689bc4bb
parenta3e6546e7ef98b9734e2c69d73c1295b60bba395 (diff)
Preserve spaces in messages [ci skip]
-rwxr-xr-xtool/missing-baseruby.bat17
1 files 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