Compare commits
No commits in common. "364d40c71fba3e3fe8ce6bf560d37e072b9c4222" and "f514dd4f47923c5c38dac6dcc19c631168fb6420" have entirely different histories.
364d40c71f
...
f514dd4f47
6 changed files with 8 additions and 9 deletions
|
@ -21,7 +21,7 @@ if [ "$(id -u)" = "0" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/utils/isportzap-member; then
|
||||
if ! "${libexec}"/utils/isportzap-member > /dev/null 2>&1; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -22,7 +22,7 @@ if [ "$(id -u)" = "0" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/utils/isportzap-member; then
|
||||
if ! "${libexec}"/utils/isportzap-member > /dev/null 2>&1; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -20,7 +20,7 @@ if [ "$(id -u)" = "0" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/utils/isportzap-member; then
|
||||
if ! "${libexec}"/utils/isportzap-member > /dev/null 2>&1; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -20,16 +20,15 @@ if [ "$(id -u)" = "0" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/utils/isportzap-member; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -e "${gitdir}" ]; then
|
||||
printerr "try 'portzap clone' instead"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! "${libexec}"/utils/isportzap-member; then
|
||||
printerr "$(id -un) is not a member of _portzap"
|
||||
fi
|
||||
|
||||
cd "${gitdir}"
|
||||
doas -n \
|
||||
-u "${user}" \
|
||||
|
|
|
@ -5,5 +5,5 @@ set -e
|
|||
# main
|
||||
group="_portzap"
|
||||
mygroups=$(id -Gn | tr ' ' '\n')
|
||||
echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1
|
||||
echo "${mygroups}" | grep -e "^${group}$"
|
||||
exit "${?}"
|
||||
|
|
Loading…
Reference in a new issue