From ec7335aba524fe0281c3bfe5f63fe6c7106d7b0b Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 23 May 2024 00:17:07 -0300 Subject: [PATCH] Fix shellcheck --- Makefile | 3 ++- libexec/portzap/utils/git-changed-files | 1 - libexec/portzap/utils/git-removed-files | 1 - libexec/portzap/utils/git-rev | 1 - libexec/portzap/utils/isportzap-member | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) 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 "${?}"