From 600e2d27afcfe6b121754fc3abe9950ee051c352 Mon Sep 17 00:00:00 2001 From: darkclip Date: Wed, 3 Jan 2024 17:00:03 +0800 Subject: [PATCH] update --- wg-watch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wg-watch.sh b/wg-watch.sh index 37a86444..8648533a 100755 --- a/wg-watch.sh +++ b/wg-watch.sh @@ -243,7 +243,7 @@ main(){ already_running(){ self=$1; - processes=$(pgrep -afl $self); + processes=$(pgrep -afl $self|awk '{$1="";print $0}'); set --; for proc in "$processes"; do unique=1;