Skip to content

Commit

Permalink
updated java_show_classpath.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jul 23, 2024
1 parent aceb3de commit 380643c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/java_show_classpath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ show_jinfo_classpath(){
echo "command: $(ps -f -p "$pid" | tail -n +2 | sed 's/^[[:space:]]*//')"
echo
else
if ! [[ "$cmd" =~ \<java\> ]]; then
if ! [[ "$cmd" =~ [[:\<:]]java[[:\>:]] ]]; then
# shellcheck disable=SC2028
echo "skipping $cmd since it doesn't match regex \\<java\\>"
echo "skipping $cmd since it doesn't match regex [[:\\<:]]java[[:\\>:]]"
return
fi
cmd="$(replace_classpath_with_token "$cmd")"
Expand Down

0 comments on commit 380643c

Please sign in to comment.