#!/bin/sh
#
# dd wrapper with notifications
# usage: `image infile outfile`

if sudo dd if="$1" of="$2" bs=4M status=progress; then
  notify-send 'dd success!'
else
  notify-send -u critical 'dd fail!'
fi
