Compare commits

..

No commits in common. "b3720019b2035400053cd84ee284578cec2d1e54" and "1aa19782c1d68ad3cc184ee3da7ddeaefd397243" have entirely different histories.

6 changed files with 11 additions and 12 deletions

View file

@ -1,10 +1,10 @@
## About
sourcezap is a utility that manages a local copy of the
sourcezap manages a local copy of the
[HardenedBSD source tree](https://git.HardenedBSD.org/HardenedBSD/HardenedBSD).
The copy of the source tree is maintained by members of
the `_sourcezap` group, and the copy of the source tree
can be installed into `/usr/ports/` by root.
the `_sourcezap` group, and a copy of the source tree
can be installed into `/usr/src/` by root.
## CLI

View file

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

View file

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

View file

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

View file

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

View file

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