Compare commits

..

2 commits

Author SHA1 Message Date
364d40c71f RELNOTES => CHANGELOG
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-08-09 23:32:37 -03:00
25933cbc85 Sync with recent sourcezap changes 2024-08-09 23:31:36 -03:00
6 changed files with 9 additions and 8 deletions

View file

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

View file

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

View file

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

View file

@ -20,15 +20,16 @@ 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}" \

View file

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