From 91c0a5089ae39a21eb96a9cafdd8d1876a8f5f2e Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 19 Oct 2021 12:31:09 +0300 Subject: [PATCH] ipset: linux pgrep does not have -q option --- ipset/def.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipset/def.sh b/ipset/def.sh index e26ebc7..28e04aa 100644 --- a/ipset/def.sh +++ b/ipset/def.sh @@ -167,7 +167,7 @@ flush_dns_cache() fi # MacOS - if exists pgrep && pgrep -q ^mDNSResponder$; then + if exists pgrep && pgrep ^mDNSResponder$ >/dev/null; then killall -HUP mDNSResponder fi }