X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=scripts%2Fburn-imgs.sh;h=a3b6fb2e7de73d3560ba3ed7bcb7a48d340958a7;hb=4c07511b60f32ff1205fe84071ee962ea656e59d;hp=27f7ad201b06b7d0e9b689c43fd905886d22ca13;hpb=03f192444fbb9c458170149cfd5c609c922bf65b;p=backups%2F.git diff --git a/scripts/burn-imgs.sh b/scripts/burn-imgs.sh index 27f7ad2..a3b6fb2 100755 --- a/scripts/burn-imgs.sh +++ b/scripts/burn-imgs.sh @@ -4,14 +4,14 @@ PATH=$(dirname $0):/bin:/usr/bin . 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