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:
parent
b00ce8113e
commit
b1e3caebba
1 changed files with 1 additions and 1 deletions
2
quarkus/dist/src/main/content/bin/kc.sh
vendored
2
quarkus/dist/src/main/content/bin/kc.sh
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue