Assign ${mode} in libexec/portzap/git-*
This commit is contained in:
parent
0a5f1cc6d6
commit
76138faa39
3 changed files with 3 additions and 3 deletions
|
@ -6,12 +6,12 @@ localbase=${LOCALBASE:-/usr/local}
|
|||
git="${localbase}"/bin/git
|
||||
gitdir=$1
|
||||
commit=$2
|
||||
mode=u=rwX,g=rX,o=
|
||||
|
||||
##
|
||||
# functions
|
||||
gitexec()
|
||||
{
|
||||
# shellcheck disable=SC2154
|
||||
doas -n -u _portzap \
|
||||
/bin/sh -c "umask ${mode}; ${git} ${1}"
|
||||
}
|
||||
|
|
|
@ -6,12 +6,12 @@ localbase=${LOCALBASE:-/usr/local}
|
|||
git="${localbase}"/bin/git
|
||||
gitdir=$1
|
||||
commit=$2
|
||||
mode=u=rwX,g=rX,o=
|
||||
|
||||
##
|
||||
# functions
|
||||
gitexec()
|
||||
{
|
||||
# shellcheck disable=SC2154
|
||||
doas -n -u _portzap \
|
||||
/bin/sh -c "umask ${mode}; ${git} ${1}"
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
# variables
|
||||
git=/usr/local/bin/git
|
||||
gitdir=$1
|
||||
mode=u=rwX,g=rX,o=
|
||||
|
||||
##
|
||||
# functions
|
||||
gitexec()
|
||||
{
|
||||
# shellcheck disable=SC2154
|
||||
doas -n -u _portzap \
|
||||
/bin/sh -c "umask ${mode}; ${git} ${1}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue