test: use pgrep command

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