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;