Silence grep with -q
This commit is contained in:
parent
c68eebf4a5
commit
87f8e18ade
1 changed files with 1 additions and 1 deletions
|
@ -5,5 +5,5 @@ set -e
|
||||||
# main
|
# main
|
||||||
group="_sourcezap"
|
group="_sourcezap"
|
||||||
mygroups=$(id -Gn | tr ' ' '\n')
|
mygroups=$(id -Gn | tr ' ' '\n')
|
||||||
echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1
|
echo "${mygroups}" | grep -qe "^${group}$"
|
||||||
exit "${?}"
|
exit "${?}"
|
||||||
|
|
Loading…
Reference in a new issue