Skip to content

Commit

Permalink
Updated build_h3-firmware.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvught committed Nov 12, 2024
1 parent 1d3ac61 commit 0a4bd13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build_h3-firmware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ do_check()
maxsize=139264
filesize=$(stat -c%s "$1")
if (( filesize > maxsize )); then
echo -e "\e[31m[$1 is too big for SPI Flash -> $filesize]\e[0m"
echo -e "\e[33m[$1 is too big for SPI Flash -> $filesize]\e[0m"
rm -rf $1
ls -al "$1.gz"
filesize=$(stat -c%s "$1.gz")
if (( filesize > maxsize )); then
echo -e "\e[31m[Error: $1.gz is too big for SPI Flash -> $filesize]\e[0m"
fi
else
ls -al "$1"
fi
Expand Down

0 comments on commit 0a4bd13

Please sign in to comment.