Ignore:
Timestamp:
Jul 10, 2008, 6:37:04 PM (13 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 :-(
File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.