Update isportzap-member

This commit is contained in:
0x1eef 2024-05-21 23:27:14 -03:00
parent b5a80bafdf
commit b2b17ba5da

View file

@ -1,12 +1,9 @@
#!/bin/sh
set -e
##
# main
group="_portzap"
if id -Gn | \
tr ' ' '\n' | \
grep -e "^${group}$" \
> /dev/null 2>&1; then
exit 0
else
exit 1
fi
mygroups=$(id -Gn | tr ' ' '\n')
echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1
exit "${?}"