Fix shellcheck
This commit is contained in:
parent
1eeea5ff23
commit
ec7335aba5
5 changed files with 3 additions and 5 deletions
3
Makefile
3
Makefile
|
@ -22,4 +22,5 @@ deinstall:
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
shellcheck bin/portzap
|
shellcheck bin/portzap
|
||||||
shellcheck libexec/portzap/*
|
shellcheck libexec/portzap/utils/*
|
||||||
|
shellcheck libexec/portzap/commands/*
|
||||||
|
|
|
@ -3,7 +3,6 @@ set -e
|
||||||
|
|
||||||
##
|
##
|
||||||
# variables
|
# variables
|
||||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)}
|
|
||||||
git=$(which git)
|
git=$(which git)
|
||||||
mode=u=rwX,g=rX,o=
|
mode=u=rwX,g=rX,o=
|
||||||
gitdir=$1
|
gitdir=$1
|
||||||
|
|
|
@ -3,7 +3,6 @@ set -e
|
||||||
|
|
||||||
##
|
##
|
||||||
# variables
|
# variables
|
||||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)}
|
|
||||||
git=$(which git)
|
git=$(which git)
|
||||||
mode=u=rwX,g=rX,o=
|
mode=u=rwX,g=rX,o=
|
||||||
gitdir=$1
|
gitdir=$1
|
||||||
|
|
|
@ -3,7 +3,6 @@ set -e
|
||||||
|
|
||||||
##
|
##
|
||||||
# variables
|
# variables
|
||||||
localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)}
|
|
||||||
git=$(which git)
|
git=$(which git)
|
||||||
mode=u=rwX,g=rX,o=
|
mode=u=rwX,g=rX,o=
|
||||||
gitdir=$1
|
gitdir=$1
|
||||||
|
|
|
@ -5,5 +5,5 @@ set -e
|
||||||
# main
|
# main
|
||||||
group="_portzap"
|
group="_portzap"
|
||||||
mygroups=$(id -Gn | tr ' ' '\n')
|
mygroups=$(id -Gn | tr ' ' '\n')
|
||||||
anymatch=$(echo "${mygroups}" | grep -e "^${group}$")
|
echo "${mygroups}" | grep -e "^${group}$"
|
||||||
exit "${?}"
|
exit "${?}"
|
||||||
|
|
Loading…
Reference in a new issue