#!/bin/bash set -e SIZE=$(stat -c '%s' banan-os.img | numfmt --to=iec) echo Writing ${SIZE}iB sudo dd if=banan-os.img of=/dev/sda status=progress