From 3c37a1618ca870d31b24c9d78ae136b3bfcfbb16 Mon Sep 17 00:00:00 2001 From: Igor Velkov <325961+iav@users.noreply.github.com> Date: Mon, 2 Mar 2026 05:06:41 +0200 Subject: [PATCH] (#9400 P1a) config/sources/families/spacemit.conf: convert [ ] to [[ ]] Replace POSIX `[ ]` with bash `[[ ]]`; also quote the unquoted `${2}boot0` expansion to prevent word-splitting on the path. Co-Authored-By: Claude Sonnet 4.6 --- config/sources/families/spacemit.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sources/families/spacemit.conf b/config/sources/families/spacemit.conf index 26a72a54c5..ba15d9a262 100644 --- a/config/sources/families/spacemit.conf +++ b/config/sources/families/spacemit.conf @@ -66,7 +66,7 @@ pre_prepare_partitions() { write_uboot_platform() { local device=${2} - if [ -b ${2}boot0 ]; then + if [[ -b "${2}boot0" ]]; then echo "eMMC" DEVICE=`ls /dev/mmcblk*boot0 | sed 's/^.....//'` echo 0 > /sys/block/${DEVICE}/force_ro