aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Scripts
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2018-06-02 00:20:26 +0800
committermat <mat@FreeBSD.org>2018-06-02 00:20:26 +0800
commit755cd47ed1a8065309a7aba10e57beadf06048cd (patch)
treeee66d5d645411c1adade57923d2541ad329272c6 /Mk/Scripts
parent31201ec9ac1eccfae21fed053f21634b178bca47 (diff)
downloadfreebsd-ports-gnome-755cd47ed1a8065309a7aba10e57beadf06048cd.tar.gz
freebsd-ports-gnome-755cd47ed1a8065309a7aba10e57beadf06048cd.tar.zst
freebsd-ports-gnome-755cd47ed1a8065309a7aba10e57beadf06048cd.zip
SC2068: Double quote array expansions to avoid re-splitting elements.
Double quotes around $@ prevents globbing and word splitting of individual elements, while still expanding to multiple separate arguments. Add exceptions when splitting is the intended behavior. PR: 227109 Submitted by: mat Sponsored by: Absolight
Diffstat (limited to 'Mk/Scripts')
-rw-r--r--Mk/Scripts/depends-list.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/Scripts/depends-list.sh b/Mk/Scripts/depends-list.sh
index 39a0c5656f50..91d95d136e7e 100644
--- a/Mk/Scripts/depends-list.sh
+++ b/Mk/Scripts/depends-list.sh
@@ -115,10 +115,14 @@ check_dep() {
fi
[ ${show_dep} -eq 1 ] && echo "${port_display}"
if [ ${recursive} -eq 1 -o ${requires_wrkdir} -eq 1 -a ${show_dep} -eq 1 ]; then
+ # shellcheck disable=SC2068
+ # Do not add quotes, we want to split the string here.
check_dep $@
fi
done
}
checked=
+# shellcheck disable=SC2068
+# Do not add quotes, we want to split the string here.
check_dep $@