[Buildroot] [git commit branch/next] utils/config: fix shellcheck errors
Peter Korsgaard
peter at korsgaard.com
Fri Feb 28 16:46:17 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=ef80b710f214fe76dca1aa666eb5e7cea9702ca0
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
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 <romain.naour at smile.fr>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
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/%\"/}"
More information about the buildroot
mailing list