summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtool/missing-baseruby.bat11
1 files changed, 6 insertions, 5 deletions
diff --git a/tool/missing-baseruby.bat b/tool/missing-baseruby.bat
index 9b65e79cfc..5b615bd9a8 100755
--- a/tool/missing-baseruby.bat
+++ b/tool/missing-baseruby.bat
@@ -7,9 +7,10 @@
exit /b 1
)
: "
-: ; call:warn() { echo "$1" >&2; }
-: ; call:abort () { exit 1; }
+: ; call() { local call=${1#:}; shift; $call "$@"; }
+: ; warn() { echo "$1" >&2; }
+: ; 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
+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