Changeset 277 in MondoRescue for branches/2.06/mindi


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

replaced sort | uniq with sort -u

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mindi/mindi

    r275 r277  
    808808    echo -en "$DONE\nMaking complete dependency list"
    809809
    810     tr -s '/' '/' < $tempfile | sort | uniq > $tempfile.new
     810    tr -s '/' '/' < $tempfile | sort -u > $tempfile.new
    811811    mv -f $tempfile.new $tempfile
    812812    > $outfile.pre
     
    819819        cat $tempdepfile >> $outfile.pre
    820820#        echo "$fname ----> dependencies:-" >> $LOGFILE
    821 #        cat $tempdepfile | tr -s '/' '/' | sort | uniq >> $LOGFILE
     821#        cat $tempdepfile | tr -s '/' '/' | sort -u >> $LOGFILE
    822822#        echo -en "(end of deplist of $fname)\n\n" >> $LOGFILE
    823823        rm -f $tempdepfile
     
    13151315        mount | fgrep "$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted."
    13161316    done
    1317     [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort | uniq | tr '\n ' ' '`"
     1317    [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`"
    13181318    printf "        %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)"
    13191319    for c_p in $all_partitions ; do
     
    25712571        fi
    25722572    fi
    2573     possible_kernels=`echo "$possible_kernels" | tr -s ' ' '\n' | sort | uniq | tr '\n' ' '`
     2573    possible_kernels=`echo "$possible_kernels" | tr -s ' ' '\n' | sort -u | tr '\n' ' '`
    25742574    noof_kernels=`CountItemsIn "$possible_kernels"`
    25752575    if [ "$noof_kernels" -eq "0" ] ; then
Note: See TracChangeset for help on using the changeset viewer.