Skip to content

Commit

Permalink
write_uboot_platform: Fix a false shell message
Browse files Browse the repository at this point in the history
  • Loading branch information
The-going authored and igorpecovnik committed Jul 24, 2024
1 parent 6998d83 commit f878f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/sources/families/spacemit.conf
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ write_uboot_platform() {

for f in "${!d[@]}"
do
#echo "skip\seek=${d[$f]%:*} count=${d[$f]#*:}" # uncomment for debugging
if $(dd if=${device} bs=1 skip="${d[$f]%:*}" count="${d[$f]#*:}" \
conv=notrunc status=noxfer 2>/dev/null | cmp ${f})
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}"
dd if=$f of=${device} bs=1 seek="${d[$f]%:*}" conv=notrunc status=noxfer
sync
fi
Expand Down

0 comments on commit f878f14

Please sign in to comment.