Old sh does not allow : in function names [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2024-01-18 19:56:52 +09:00
parent 264b7363aa
commit 97721fa4e1
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -7,9 +7,10 @@
exit /b 1 exit /b 1
) )
: " : "
: ; call:warn() { echo "$1" >&2; } : ; call() { local call=${1#:}; shift; $call "$@"; }
: ; call:abort () { exit 1; } : ; warn() { echo "$1" >&2; }
: ; abort () { exit 1; }
call:warn "executable host ruby is required. use --with-baseruby option." 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 :warn "Note that BASERUBY must be Ruby 2.7.0 or later."
call:abort call :abort