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
|
# main
|
||||||
group="_portzap"
|
group="_portzap"
|
||||||
mygroups=$(id -Gn | tr ' ' '\n')
|
mygroups=$(id -Gn | tr ' ' '\n')
|
||||||
echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1
|
anymatch=$(echo "${mygroups}" | grep -e "^${group}$")
|
||||||
exit "${?}"
|
exit "${?}"
|
||||||
|
|
|
@ -29,7 +29,7 @@ if [ "$(id -u)" = "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! "${libexec}"/isportzap-member; then
|
if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then
|
||||||
printerr "$(id -un) is not a member of _portzap"
|
printerr "$(id -un) is not a member of _portzap"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -34,7 +34,7 @@ if [ "$(id -u)" = "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! "${libexec}"/isportzap-member; then
|
if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then
|
||||||
printerr "$(id -un) is not a member of _portzap"
|
printerr "$(id -un) is not a member of _portzap"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -32,7 +32,7 @@ if [ "$(id -u)" = "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! "${libexec}"/isportzap-member; then
|
if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then
|
||||||
printerr "$(id -un) is not a member of _portzap"
|
printerr "$(id -un) is not a member of _portzap"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue