occ_maintenance.sh: Suppress pgrep output in if clause using grep -q .

This commit is contained in:
2026-04-12 22:42:11 +02:00
parent 0ae2bad29b
commit 81a66209d6

View File

@@ -192,7 +192,7 @@ fi
# - Jobhandling
# ----------
if pgrep -f "$(basename $0)" | grep -v $$ ; then
if pgrep -f "$(basename $0)" | grep -q -v $$ ; then
msg="A previos instance of script \"`basename $0`\" seems already be running."