aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2018-06-02 00:20:45 +0800
committermat <mat@FreeBSD.org>2018-06-02 00:20:45 +0800
commita787074a872d349ed760a5ae08303e0f039bd6f2 (patch)
treeda5f26159c69c2ca81f755f6c4cbb2aeef2ab7f2
parent3842a1a514b101abaa1347ea3e43364c8f2f0da7 (diff)
downloadfreebsd-ports-gnome-a787074a872d349ed760a5ae08303e0f039bd6f2.tar.gz
freebsd-ports-gnome-a787074a872d349ed760a5ae08303e0f039bd6f2.tar.zst
freebsd-ports-gnome-a787074a872d349ed760a5ae08303e0f039bd6f2.zip
SC2153: Possible misspelling: PORTNAME may not be assigned, but portname is.
ShellCheck has noticed that you reference a variable that is not assigned in the script, which has a name remarkably similar to one that is explicitly assigned. You should verify that the variable name is spelled correctly. PR: 227109 Submitted by: mat Sponsored by: Absolight
-rw-r--r--Mk/Scripts/qa.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index 2971f88092eb..b36dce8e5d3a 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -818,6 +818,9 @@ gemdeps()
{
rc=0
if [ "${PKGBASE%%-*}" = "rubygem" ]; then
+ # shellcheck disable=SC2153
+ # In the heredoc, ${PORTNAME} comes from the environment, not
+ # to be confused with ${portname}
while read -r l; do
if [ -n "${l}" ]; then
name=${l%% *}