. config.sh
+# If the noburn file is there then don't burn.
+[ -f "$burnlockfile" ] && exit 0
+
# Discover disk images by looking for .img.md5sum files in $imagedir
imgmd5=$(ls $imagedir/*.img.md5sum | head -n 1)
logfile=$(tempfile)
-# If the noburn file is there then don't burn.
-[ -f "$burnlockfile" ] && exit 0
-
# If we didn't find an non-empty file then exit gracefully
[ -z "$imgmd5" ] && exit 0
[ -s "$imgmd5" ] || exit 0