From 97721fa4e19c497d34a3bf94169930f99179f48d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 18 Jan 2024 19:56:52 +0900 Subject: [PATCH] Old sh does not allow `:` in function names [ci skip] --- tool/missing-baseruby.bat | 11 ++++++----- 1 file 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