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