From 380643c1dc58853c0eb65cff3be4524b7e3291b1 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Tue, 23 Jul 2024 23:26:00 +0300 Subject: [PATCH] updated java_show_classpath.sh --- bin/java_show_classpath.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/java_show_classpath.sh b/bin/java_show_classpath.sh index 50de9012144..cd4d16985d2 100755 --- a/bin/java_show_classpath.sh +++ b/bin/java_show_classpath.sh @@ -104,9 +104,9 @@ show_jinfo_classpath(){ echo "command: $(ps -f -p "$pid" | tail -n +2 | sed 's/^[[:space:]]*//')" echo else - if ! [[ "$cmd" =~ \ ]]; then + if ! [[ "$cmd" =~ [[:\<:]]java[[:\>:]] ]]; then # shellcheck disable=SC2028 - echo "skipping $cmd since it doesn't match regex \\" + echo "skipping $cmd since it doesn't match regex [[:\\<:]]java[[:\\>:]]" return fi cmd="$(replace_classpath_with_token "$cmd")"