Revert "shellfmt: config/sources; no changes"

This reverts commit 2f63a9cd98.

`[${1} / bootinfo_emmc.bin]`
`[${1} / FSBL.bin]`          - This is the path to the file.
                               It cannot contain spaces.
This commit is contained in:
The-going
2024-12-05 22:02:29 +03:00
committed by Igor
parent a71b8675ae
commit 43166a8354

View File

@@ -76,8 +76,8 @@ write_uboot_platform() {
declare -A d
d=(
[${1} / bootinfo_emmc.bin]="0:$(du -b ${1}/bootinfo_emmc.bin | awk '{print $1}')"
[${1} / FSBL.bin]="512:$(du -b ${1}/FSBL.bin | awk '{print $1}')"
[${1}/bootinfo_emmc.bin]="0:$(du -b ${1}/bootinfo_emmc.bin | awk '{print $1}')"
[${1}/FSBL.bin]="512:$(du -b ${1}/FSBL.bin | awk '{print $1}')"
)
if [ -b ${2}boot0 ]; then
@@ -86,9 +86,11 @@ write_uboot_platform() {
sync
fi
for f in "${!d[@]}"; do
for f in "${!d[@]}"
do
if $(dd if=${device} bs=1 skip="${d[$f]%:*}" count="${d[$f]#*:}" \
conv=notrunc status=noxfer 2> /dev/null | cmp --quiet "${f}"); then
conv=notrunc status=noxfer 2>/dev/null | cmp --quiet "${f}")
then
echo "Skip $(basename $f), it is equal to the existing one"
else
echo "# Write =: $(basename $f) to ${device}"