forked from Bananymous/banan-os
Build: Make install-usb.sh print human readable size
This commit is contained in:
parent
8f1b6da2af
commit
eacf551d0f
|
@ -2,7 +2,7 @@
|
||||||
set -e
|
set -e
|
||||||
. ./disk.sh
|
. ./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
|
sudo dd if=banan-os.img of=/dev/sda status=progress
|
||||||
|
|
Loading…
Reference in New Issue