diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-01-18 19:56:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-01-18 19:56:52 +0900 |
commit | 97721fa4e19c497d34a3bf94169930f99179f48d (patch) | |
tree | 63af7e6f4e6369a4907f495ee2a7b3aefc9c3db6 | |
parent | 264b7363aa7e47a7868b91038a0578970bc19c1f (diff) |
Old sh does not allow `:` in function names [ci skip]
-rwxr-xr-x | tool/missing-baseruby.bat | 11 |
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 |