(#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 <noreply@anthropic.com>
This commit is contained in:
Igor Velkov 2026-03-02 05:06:41 +02:00 committed by Igor
parent fc841b6b74
commit 3c37a1618c

View File

@ -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