Call issourcezap-member before ${gitdir} check
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
Some checks are pending
sourcezap / shellcheck (push) Waiting to run
This commit is contained in:
parent
ef1295fb35
commit
b3720019b2
1 changed files with 5 additions and 4 deletions
|
@ -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}" \
|
||||||
|
|
Loading…
Reference in a new issue