(#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:
parent
fc841b6b74
commit
3c37a1618c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user