From ef80b710f214fe76dca1aa666eb5e7cea9702ca0 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 8 Feb 2025 15:23:25 +0100 Subject: [PATCH] utils/config: fix shellcheck errors SC2086 is now reported for missing Double quote around $FN since shellcheck 0.9.0: In utils/config line 175: if grep -q "# ${BR2_PREFIX}$ARG is not set" $FN ; then ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. In utils/config line 178: if V="$(grep "^${BR2_PREFIX}$ARG=" $FN)"; then ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Signed-off-by: Romain Naour Signed-off-by: Peter Korsgaard --- utils/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/config b/utils/config index dfaaf46cd7..038986ca6c 100755 --- a/utils/config +++ b/utils/config @@ -172,10 +172,10 @@ while [ "$1" != "" ] ; do ;; --state|-s) - if grep -q "# ${BR2_PREFIX}$ARG is not set" $FN ; then + if grep -q "# ${BR2_PREFIX}$ARG is not set" "$FN" ; then echo n else - if V="$(grep "^${BR2_PREFIX}$ARG=" $FN)"; then + if V="$(grep "^${BR2_PREFIX}$ARG=" "$FN")"; then V="${V/#${BR2_PREFIX}$ARG=/}" V="${V/#\"/}" V="${V/%\"/}"