Ignore:
Timestamp:
Jun 25, 2006, 3:56:38 AM (18 years ago)
Author:
andree
Message:

Replace occurrences of 'grep -v ... | grep -v ... | ...' with 'grep -Ev
...' for efficiency reasons and to ease trouble-shooting.

This also fixes Debian bug #222052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/libmondo-tools.c

    r679 r680  
    11301130    // abort if Windows partition but no ms-sys and parted
    11311131    if (!run_program_and_log_output
    1132         ("mount | grep -w vfat | grep -v /dev/fd | grep -v nexdisk", 0)
     1132        ("mount | grep -w vfat | grep -vE \"/dev/fd|nexdisk\"", 0)
    11331133        ||
    11341134        !run_program_and_log_output
    1135         ("mount | grep -w dos | grep -v /dev/fd | grep -v nexdisk", 0)) {
     1135        ("mount | grep -w dos | grep -vE \"/dev/fd|nexdisk\"", 0)) {
    11361136        log_to_screen("I think you have a Windows 9x partition.");
    11371137        retval += whine_if_not_found("parted");
Note: See TracChangeset for help on using the changeset viewer.