Ignore:
Timestamp:
Jan 3, 2006, 4:09:12 PM (18 years ago)
Author:
bcornec
Message:

Patches from Sébastien Aperghis-Tramoni <maddingue@…>

replace several occurences of "cat .. | grep .."
or with similar commands that accept filenames as arguments.
+ some sort | uniq replaced by sort -u

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo/restore-scripts/mondo/label-partitions-as-necessary

    r30 r273  
    2828    mountline=`mount | grep " $label "`
    2929#   mountpt=`echo "$mountline" | cut -d' ' -f1`
    30 !   mountpt=`cat $mountlist | grep " $label " | cut -d' ' -f1`
     30!   mountpt=`grep " $label " $mountlist | cut -d' ' -f1`
    3131        if [ ! "$mountpt" ] ; then
    3232            LogIt "Not labeling anything as $label because $mountpt is not a mountpoint"
Note: See TracChangeset for help on using the changeset viewer.