Update isportzap-member

This commit is contained in:
0x1eef 2024-05-22 23:22:42 -03:00
parent 2570979e00
commit 16b8119ee4
4 changed files with 4 additions and 4 deletions

View file

@ -5,5 +5,5 @@ set -e
# main
group="_portzap"
mygroups=$(id -Gn | tr ' ' '\n')
echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1
anymatch=$(echo "${mygroups}" | grep -e "^${group}$")
exit "${?}"

View file

@ -29,7 +29,7 @@ if [ "$(id -u)" = "0" ]; then
exit 1
fi
if ! "${libexec}"/isportzap-member; then
if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then
printerr "$(id -un) is not a member of _portzap"
exit 1
fi

View file

@ -34,7 +34,7 @@ if [ "$(id -u)" = "0" ]; then
exit 1
fi
if ! "${libexec}"/isportzap-member; then
if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then
printerr "$(id -un) is not a member of _portzap"
exit 1
fi

View file

@ -32,7 +32,7 @@ if [ "$(id -u)" = "0" ]; then
exit 1
fi
if ! "${libexec}"/isportzap-member; then
if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then
printerr "$(id -un) is not a member of _portzap"
exit 1
fi