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)
|
* [GitHub](https://github.com/0x1eef/sourcezap)
|
||||||
* [GitLab](https://gitlab.com/0x1eef/sourcezap)
|
* [GitLab](https://gitlab.com/0x1eef/sourcezap)
|
||||||
* [git.HardenedBSD.org](https://git.HardenedBSD.org/0x1eef/sourcezap)
|
* [git.HardenedBSD.org](https://git.HardenedBSD.org/0x1eef/sourcezap)
|
||||||
|
* [brew.bsd.cafe](https://brew.bsd.cafe/0x1eef/sourcezap)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)}
|
||||||
libexec="${localbase}"/libexec/sourcezap
|
libexec="${localbase}"/libexec/sourcezap
|
||||||
gitdir=$1
|
gitdir=$1
|
||||||
|
|
||||||
|
echo "is $@"
|
||||||
##
|
##
|
||||||
# functions
|
# functions
|
||||||
git()
|
git()
|
||||||
|
@ -44,7 +45,7 @@ fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
branch=$(git "branch --show-current")
|
branch=$(git branch --show-current)
|
||||||
git pull --rebase origin "${branch}"
|
git pull --rebase origin "${branch}"
|
||||||
set +x
|
set +x
|
||||||
printok "pull complete"
|
printok "pull complete"
|
||||||
|
|
|
@ -10,4 +10,4 @@ mode=u=rwX,g=rX,o=
|
||||||
# main
|
# main
|
||||||
doas -n \
|
doas -n \
|
||||||
-u _sourcezap \
|
-u _sourcezap \
|
||||||
/bin/sh -c "umask ${mode}; ${git} ${1}"
|
/bin/sh -c "umask ${mode}; exec ${git} ${@}"
|
||||||
|
|
Loading…
Reference in a new issue