Call issourcezap-member before ${gitdir} check
Some checks are pending
sourcezap / shellcheck (push) Waiting to run

This commit is contained in:
0x1eef 2024-08-09 22:51:35 -03:00
parent ef1295fb35
commit b3720019b2

View file

@ -20,15 +20,16 @@ if [ "$(id -u)" = "0" ]; then
exit 1 exit 1
fi fi
if ! "${libexec}"/utils/issourcezap-member; then
printerr "$(id -un) is not a member of _sourcezap"
exit 1
fi
if [ ! -e "${gitdir}" ]; then if [ ! -e "${gitdir}" ]; then
printerr "try 'sourcezap clone' instead" printerr "try 'sourcezap clone' instead"
exit 1 exit 1
fi fi
if ! "${libexec}"/utils/issourcezap-member; then
printerr "$(id -un) is not a member of _sourcezap"
fi
cd "${gitdir}" cd "${gitdir}"
doas -n \ doas -n \
-u "${user}" \ -u "${user}" \