test: use pgrep command

This commit is contained in:
ReaJason
2025-04-28 00:48:39 +08:00
parent b0fc55064d
commit 7a5b59b560
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/bash
ps -ef | grep "jetty.home" | grep -v grep | awk '{print $2}' | tr -d '\n'
pgrep -f "jetty.home" | tr -d '\n'