if [ "$(wc -l $img.stat 2>/dev/null)" == "2" ]; then
echo "Burned the image twice. Removing it!"
rm -f $img{,.md5sum,.stat}
rmdir $img.mnt
fi
if [ "$(wc -l $img.stat 2>/dev/null)" == "2" ]; then
echo "Burned the image twice. Removing it!"
rm -f $img{,.md5sum,.stat}
rmdir $img.mnt
fi