-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
The code for computing the FILESIZE in BUILD.sh is incorrect on MacOS.
FILESIZE=$(stat -s MicroPython.bin | cut -d' ' -s -f 1 | cut -d'=' -s -f 2)
is getting the value of the first field in the output of stat -s and this is st_dev=16777223 on my machine. Alternative implementations are
FILESIZE=$(eval $(stat -s MicroPython.bin); echo $st_size)
or
FILESIZE=$(stat -s MicroPython.bin | cut -d' ' -s -f 8 | cut -d'=' -s -f 2)
which also works for me but I am not sure if this is always true.
This code appears twice in BUILD.sh and both need updating.
Thanks for all the updates!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels