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,13 +20,14 @@ if [ "$(id -u)" = "0" ]; then
exit 1
fi
if [ ! -e "${gitdir}" ]; then
printerr "try 'sourcezap clone' instead"
if ! "${libexec}"/utils/issourcezap-member; then
printerr "$(id -un) is not a member of _sourcezap"
exit 1
fi
if ! "${libexec}"/utils/issourcezap-member; then
printerr "$(id -un) is not a member of _sourcezap"
if [ ! -e "${gitdir}" ]; then
printerr "try 'sourcezap clone' instead"
exit 1
fi
cd "${gitdir}"