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