This commit is contained in:
parent
aaecf00394
commit
a610b976ba
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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} ${@}"
|
||||
|
|
Loading…
Reference in a new issue