From 87f8e18ade9012340996f442b0a381fe6b40159c Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 17 Aug 2024 18:18:39 -0300 Subject: [PATCH] Silence grep with -q --- libexec/sourcezap/utils/issourcezap-member | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/sourcezap/utils/issourcezap-member b/libexec/sourcezap/utils/issourcezap-member index 54069a3..5bf15b6 100755 --- a/libexec/sourcezap/utils/issourcezap-member +++ b/libexec/sourcezap/utils/issourcezap-member @@ -5,5 +5,5 @@ set -e # main group="_sourcezap" mygroups=$(id -Gn | tr ' ' '\n') -echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1 +echo "${mygroups}" | grep -qe "^${group}$" exit "${?}"