From b1e3caebba5dd31ad1f9deb021eb24e6b8f8b851 Mon Sep 17 00:00:00 2001 From: elkman Date: Mon, 15 Jan 2024 18:18:29 +0100 Subject: [PATCH] fix non-POSIX usage of expr in kc.sh (#26166) replaces \+ by \{1,\} in regular expression for better POSIX compatibility Signed-off-by: elkman --- quarkus/dist/src/main/content/bin/kc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quarkus/dist/src/main/content/bin/kc.sh b/quarkus/dist/src/main/content/bin/kc.sh index f54e542855..b12a0c3c21 100644 --- a/quarkus/dist/src/main/content/bin/kc.sh +++ b/quarkus/dist/src/main/content/bin/kc.sh @@ -54,7 +54,7 @@ do case "$1" in --debug) 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 shift fi