diff --git a/Makefile b/Makefile index d268cdc..f4b76b0 100644 --- a/Makefile +++ b/Makefile @@ -22,4 +22,5 @@ deinstall: shellcheck: shellcheck bin/portzap - shellcheck libexec/portzap/* + shellcheck libexec/portzap/utils/* + shellcheck libexec/portzap/commands/* diff --git a/libexec/portzap/utils/git-changed-files b/libexec/portzap/utils/git-changed-files index aa708cb..58f6fcb 100644 --- a/libexec/portzap/utils/git-changed-files +++ b/libexec/portzap/utils/git-changed-files @@ -3,7 +3,6 @@ set -e ## # variables -localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)} git=$(which git) mode=u=rwX,g=rX,o= gitdir=$1 diff --git a/libexec/portzap/utils/git-removed-files b/libexec/portzap/utils/git-removed-files index a3424e8..8a779e5 100644 --- a/libexec/portzap/utils/git-removed-files +++ b/libexec/portzap/utils/git-removed-files @@ -3,7 +3,6 @@ set -e ## # variables -localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)} git=$(which git) mode=u=rwX,g=rX,o= gitdir=$1 diff --git a/libexec/portzap/utils/git-rev b/libexec/portzap/utils/git-rev index 1784bc2..2a49568 100644 --- a/libexec/portzap/utils/git-rev +++ b/libexec/portzap/utils/git-rev @@ -3,7 +3,6 @@ set -e ## # variables -localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/../../..)} git=$(which git) mode=u=rwX,g=rX,o= gitdir=$1 diff --git a/libexec/portzap/utils/isportzap-member b/libexec/portzap/utils/isportzap-member index 4ce02cf..ff4d9c4 100644 --- a/libexec/portzap/utils/isportzap-member +++ b/libexec/portzap/utils/isportzap-member @@ -5,5 +5,5 @@ set -e # main group="_portzap" mygroups=$(id -Gn | tr ' ' '\n') -anymatch=$(echo "${mygroups}" | grep -e "^${group}$") +echo "${mygroups}" | grep -e "^${group}$" exit "${?}"