Assign ${mode} in libexec/portzap/git-*

This commit is contained in:
0x1eef 2024-04-20 16:47:08 -03:00
parent 0a5f1cc6d6
commit 76138faa39
3 changed files with 3 additions and 3 deletions

View file

@ -6,12 +6,12 @@ localbase=${LOCALBASE:-/usr/local}
git="${localbase}"/bin/git git="${localbase}"/bin/git
gitdir=$1 gitdir=$1
commit=$2 commit=$2
mode=u=rwX,g=rX,o=
## ##
# functions # functions
gitexec() gitexec()
{ {
# shellcheck disable=SC2154
doas -n -u _portzap \ doas -n -u _portzap \
/bin/sh -c "umask ${mode}; ${git} ${1}" /bin/sh -c "umask ${mode}; ${git} ${1}"
} }

View file

@ -6,12 +6,12 @@ localbase=${LOCALBASE:-/usr/local}
git="${localbase}"/bin/git git="${localbase}"/bin/git
gitdir=$1 gitdir=$1
commit=$2 commit=$2
mode=u=rwX,g=rX,o=
## ##
# functions # functions
gitexec() gitexec()
{ {
# shellcheck disable=SC2154
doas -n -u _portzap \ doas -n -u _portzap \
/bin/sh -c "umask ${mode}; ${git} ${1}" /bin/sh -c "umask ${mode}; ${git} ${1}"
} }

View file

@ -4,12 +4,12 @@
# variables # variables
git=/usr/local/bin/git git=/usr/local/bin/git
gitdir=$1 gitdir=$1
mode=u=rwX,g=rX,o=
## ##
# functions # functions
gitexec() gitexec()
{ {
# shellcheck disable=SC2154
doas -n -u _portzap \ doas -n -u _portzap \
/bin/sh -c "umask ${mode}; ${git} ${1}" /bin/sh -c "umask ${mode}; ${git} ${1}"
} }