test: use pgrep command

This commit is contained in:
ReaJason
2025-05-14 00:34:32 +08:00
parent 9fb653b6f8
commit a883c9914e
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
ps -ef | grep -E 'Main|jboss-modules.jar' | grep -v grep | awk '{print $2}' | tr -d '\n'
pgrep -f 'Main|jboss-modules.jar' | tr -d '\n'