Changeset 1999 in MondoRescue for branches/2.2.7/mondo/src/restore-scripts


Ignore:
Timestamp:
Jul 10, 2008, 6:37:04 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • Protect recursive remove of tempdir with test on the look and feel of that dir to avoid removing blindly useful dir :-(
Location:
branches/2.2.7/mondo/src/restore-scripts/mondo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.7/mondo/src/restore-scripts/mondo/grub-install.patched

    r691 r1999  
    282282
    283283copy_images() {
    284     # Copy the GRUB images to the GRUB directory.
    285 #    for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
    286 #   rm -f $file || exit 1
    287 #    done
    288     for file in \
    289     ${pkgdatadir}/stage1 ${pkgdatadir}/stage2 ${pkgdatadir}/*stage1_5; do
    290     cp -f $file ${grubdir} || exit 1
     284    for file in ${pkgdatadir}/stage1 ${pkgdatadir}/stage2 ${pkgdatadir}/*stage1_5; do
     285        cp -f $file ${grubdir} || exit 1
    291286    done
    292287}
  • branches/2.2.7/mondo/src/restore-scripts/mondo/mount-subroutine-me

    r567 r1999  
    2424        if [ -e "$mountdir" ] && [ ! -d "$mountdir" ] ; then
    2525            LogIt "$mountdir exists (but not a dir). Deleting..." 2
    26             rm "$mountdir" -f
     26            rm -f "$mountdir"
    2727            mkdir -p "$mountdir"
    2828        else
Note: See TracChangeset for help on using the changeset viewer.