Changeset 382


Ignore:
Timestamp:
Feb 12, 2006, 4:21:14 AM (13 years ago)
Author:
andree
Message:

Fixed mindi so that it only deletes freshly created 1440kb boot and root
floppy images if creation finished with an error.
(See also Debian Bug #348966.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/mindi

    r379 r382  
    19281928    res=$(($res+$?))
    19291929    rm -f $imagefile
    1930     [ "$res" -ne "0" ] && LogIt "Warning - failed to create 1.44MB boot/root floppies\n"
    1931     rm -f $imagesdir/mindi-*.1440.img
     1930    if [ "$res" -ne "0" ]; then
     1931        LogIt "Warning - failed to create 1.44MB boot/root floppies\n"
     1932        rm -f $imagesdir/mindi-*.1440.img
     1933    fi
    19321934    return $res
    19331935    fi
     
    20662068        res=$(($res+$?))
    20672069        rm -f $imagefile
    2068         [ "$res" -ne "0" ] && LogIt "Warning - failed to create 1.44MB boot/root floppies\n"
     2070        if [ "$res" -ne "0" ]; then
     2071            LogIt "Warning - failed to create 1.44MB boot/root floppies\n"
     2072            rm -f $imagesdir/mindi-*.1440.img
     2073        fi
    20692074        return $res
    20702075    fi
Note: See TracChangeset for help on using the changeset viewer.