diff --git a/README.md b/README.md index f47b0e9..0364715 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ via git: * [GitHub](https://github.com/0x1eef/sourcezap) * [GitLab](https://gitlab.com/0x1eef/sourcezap) * [git.HardenedBSD.org](https://git.HardenedBSD.org/0x1eef/sourcezap) +* [brew.bsd.cafe](https://brew.bsd.cafe/0x1eef/sourcezap) ## License diff --git a/libexec/sourcezap/commands/sourcezap-pull b/libexec/sourcezap/commands/sourcezap-pull index 6777f3c..98a0c63 100755 --- a/libexec/sourcezap/commands/sourcezap-pull +++ b/libexec/sourcezap/commands/sourcezap-pull @@ -7,6 +7,7 @@ localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)} libexec="${localbase}"/libexec/sourcezap gitdir=$1 +echo "is $@" ## # functions git() @@ -44,7 +45,7 @@ fi set -x cd "${gitdir}" -branch=$(git "branch --show-current") +branch=$(git branch --show-current) git pull --rebase origin "${branch}" set +x printok "pull complete" diff --git a/libexec/sourcezap/utils/git b/libexec/sourcezap/utils/git index 4ce4a11..5500b97 100755 --- a/libexec/sourcezap/utils/git +++ b/libexec/sourcezap/utils/git @@ -10,4 +10,4 @@ mode=u=rwX,g=rX,o= # main doas -n \ -u _sourcezap \ - /bin/sh -c "umask ${mode}; ${git} ${1}" + /bin/sh -c "umask ${mode}; exec ${git} ${@}"