Fix shellcheck (unused variable, false positives)

This commit is contained in:
0x1eef 2024-04-20 11:10:40 -03:00
parent 6ed089e6fb
commit 0a5f1cc6d6
5 changed files with 3 additions and 2 deletions

View file

@ -11,6 +11,7 @@ commit=$2
# 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

@ -11,6 +11,7 @@ commit=$2
# 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

@ -9,6 +9,7 @@ gitdir=$1
# 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

@ -2,7 +2,6 @@
## ##
# variables # variables
libexec=$(dirname "$0")
gitdir=$1 gitdir=$1
installdir=$2 installdir=$2

View file

@ -8,7 +8,6 @@ git="${localbase}"/bin/git
gitdir=$1 gitdir=$1
branch=$2 branch=$2
mode="u=rwX,g=rX,o=" mode="u=rwX,g=rX,o="
owner="_portzap:_portzap"
## ##
# functions # functions