done
} > $currentfiles
-if [ -n $simulate ]; then
+if [ -n "$simulate" ]; then
backupdbin=$backupdbout
fi
cat $currentfiles
} | lsbackups > $backups 2>$statusfile
-if [ -n $simulate ]; then
+if [ -n "$simulate" ]; then
umount $isomountdir
rm -rf $isomountdir $isoimage
cat $statusfile
md5sum $isoimage | awk '{print$1}' > $isoimage.md5sum
[ $? != 0 ] && err "Unable to calculate the md5sum for this image: $isoimage"
+[ -z "$isoimage.md5sum" ] && err "Unable to calculate the md5sum for this image: $isoimage"
+[ -s "$isoimage.md5sum" ] || err "Unable to calculate the md5sum for this image: $isoimage"
cat $statusfile | mailx -s "DVD image available to burn - $today" $mailto