fix non-POSIX usage of expr in kc.sh (#26166)

replaces \+ by \{1,\} in regular expression for better POSIX compatibility

Signed-off-by: elkman <elkman@users.noreply.github.com>
This commit is contained in:
elkman 2024-01-15 18:18:29 +01:00 committed by GitHub
parent b00ce8113e
commit b1e3caebba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ do
case "$1" in case "$1" in
--debug) --debug)
DEBUG_MODE=true DEBUG_MODE=true
if [ -n "$2" ] && expr "$2" : '[0-9]\+$' >/dev/null; then if [ -n "$2" ] && expr "$2" : '[0-9]\{0,\}$' >/dev/null; then
DEBUG_PORT=$2 DEBUG_PORT=$2
shift shift
fi fi