Build: Make install-usb.sh print human readable size

This commit is contained in:
Bananymous 2023-02-19 00:48:25 +02:00
parent 8f1b6da2af
commit eacf551d0f
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
set -e
. ./disk.sh
SIZE=$(stat banan-os.img | grep -oP '\d+' | head -n 1)
SIZE=$(stat -c '%s' banan-os.img | numfmt --to=iec)
echo Writing $SIZE bytes
echo Writing ${SIZE}B
sudo dd if=banan-os.img of=/dev/sda status=progress