From a787074a872d349ed760a5ae08303e0f039bd6f2 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 1 Jun 2018 16:20:45 +0000 Subject: 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 --- Mk/Scripts/qa.sh | 3 +++ 1 file changed, 3 insertions(+) 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%% *} -- cgit