From 0a5f1cc6d67be7f365204ee1e4acf4cd835809d6 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 20 Apr 2024 11:10:40 -0300 Subject: [PATCH] Fix shellcheck (unused variable, false positives) --- libexec/portzap/git-changed-files | 1 + libexec/portzap/git-removed-files | 1 + libexec/portzap/git-rev | 1 + libexec/portzap/portzap-erase | 1 - libexec/portzap/portzap-pull | 1 - 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libexec/portzap/git-changed-files b/libexec/portzap/git-changed-files index 88f9cea..d434047 100644 --- a/libexec/portzap/git-changed-files +++ b/libexec/portzap/git-changed-files @@ -11,6 +11,7 @@ commit=$2 # functions gitexec() { + # shellcheck disable=SC2154 doas -n -u _portzap \ /bin/sh -c "umask ${mode}; ${git} ${1}" } diff --git a/libexec/portzap/git-removed-files b/libexec/portzap/git-removed-files index 178abf3..9f52544 100644 --- a/libexec/portzap/git-removed-files +++ b/libexec/portzap/git-removed-files @@ -11,6 +11,7 @@ commit=$2 # functions gitexec() { + # shellcheck disable=SC2154 doas -n -u _portzap \ /bin/sh -c "umask ${mode}; ${git} ${1}" } diff --git a/libexec/portzap/git-rev b/libexec/portzap/git-rev index 4698ea1..6e0a4f9 100644 --- a/libexec/portzap/git-rev +++ b/libexec/portzap/git-rev @@ -9,6 +9,7 @@ gitdir=$1 # functions gitexec() { + # shellcheck disable=SC2154 doas -n -u _portzap \ /bin/sh -c "umask ${mode}; ${git} ${1}" } diff --git a/libexec/portzap/portzap-erase b/libexec/portzap/portzap-erase index a4dce50..80a2bc6 100644 --- a/libexec/portzap/portzap-erase +++ b/libexec/portzap/portzap-erase @@ -2,7 +2,6 @@ ## # variables -libexec=$(dirname "$0") gitdir=$1 installdir=$2 diff --git a/libexec/portzap/portzap-pull b/libexec/portzap/portzap-pull index d5c949d..9f0fb72 100755 --- a/libexec/portzap/portzap-pull +++ b/libexec/portzap/portzap-pull @@ -8,7 +8,6 @@ git="${localbase}"/bin/git gitdir=$1 branch=$2 mode="u=rwX,g=rX,o=" -owner="_portzap:_portzap" ## # functions