Update isportzap-member
This commit is contained in:
parent
2570979e00
commit
16b8119ee4
4 changed files with 4 additions and 4 deletions
|
@ -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 "${?}"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue