occ_maintenance.sh: Suppress pgrep output in if clause using grep -q .
This commit is contained in:
@@ -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."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user