Changeset 2852


Ignore:
Timestamp:
Jul 25, 2011, 1:19:23 PM (8 years ago)
Author:
bruno
Message:
  • Fix a compatibility bug in analyze-my-lvm whete exclude lists with '|' was incorrectly analyzed (' ' still expected)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/analyze-my-lvm

    r2728 r2852  
    6060        done
    6161        list_of_devices="`echo $l | sort -u`"
    62         for ed in $MINDI_EXCLUDE_DEVS ; do
     62        for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do
    6363            if  [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then
    6464                echo "Not including device $LV_full_string as it was excluded"
     
    159159
    160160    if [ "$MINDI_EXCLUDE_DEVS" ] ; then
    161         for ed in $MINDI_EXCLUDE_DEVS ; do
     161        for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do
    162162            if  [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then
    163163                echo $current_VG >> $MINDI_TMP/excludedvgs
     
    188188        list_of_devices="`echo $l | sort -u`"
    189189        if [ "$MINDI_EXCLUDE_DEVS" ] ; then
    190             for ed in $MINDI_EXCLUDE_DEVS ; do
     190            for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do
    191191                if  [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then
    192192                    skip=1
     
    211211                list_of_devices="`echo $l | sort -u`"
    212212                if [ "$MINDI_EXCLUDE_DEVS" ] ; then
    213                     for ed in $MINDI_EXCLUDE_DEVS ; do
     213                    for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do
    214214                        if  [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then
    215215                            skip=1
     
    266266        skip=0
    267267        if [ "$MINDI_EXCLUDE_DEVS" ] ; then
    268             for ed in $MINDI_EXCLUDE_DEVS ; do
     268            for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do
    269269                if  [ "`echo " $rep " | grep " $ed"`" != "" ]; then
    270270                    skip=1
Note: See TracChangeset for help on using the changeset viewer.