Silence issourcezap-member noise in sourcezap-sh
This commit is contained in:
parent
230ae9b1e8
commit
ef1295fb35
4 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ if [ "$(id -u)" = "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! "${libexec}"/utils/issourcezap-member > /dev/null 2>&1; then
|
if ! "${libexec}"/utils/issourcezap-member; then
|
||||||
printerr "$(id -un) is not a member of _sourcezap"
|
printerr "$(id -un) is not a member of _sourcezap"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -22,7 +22,7 @@ if [ "$(id -u)" = "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! "${libexec}"/utils/issourcezap-member > /dev/null 2>&1; then
|
if ! "${libexec}"/utils/issourcezap-member; then
|
||||||
printerr "$(id -un) is not a member of _sourcezap"
|
printerr "$(id -un) is not a member of _sourcezap"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -20,7 +20,7 @@ if [ "$(id -u)" = "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! "${libexec}"/utils/issourcezap-member > /dev/null 2>&1; then
|
if ! "${libexec}"/utils/issourcezap-member; then
|
||||||
printerr "$(id -un) is not a member of _sourcezap"
|
printerr "$(id -un) is not a member of _sourcezap"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5,5 +5,5 @@ set -e
|
||||||
# main
|
# main
|
||||||
group="_sourcezap"
|
group="_sourcezap"
|
||||||
mygroups=$(id -Gn | tr ' ' '\n')
|
mygroups=$(id -Gn | tr ' ' '\n')
|
||||||
echo "${mygroups}" | grep -e "^${group}$"
|
echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1
|
||||||
exit "${?}"
|
exit "${?}"
|
||||||
|
|
Loading…
Reference in a new issue