Changeset 299


Ignore:
Timestamp:
Jan 11, 2006, 1:23:14 PM (14 years ago)
Author:
bcornec
Message:

Avoids an error message when invoking lvmscandisk

File:
1 edited

Legend:

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

    r298 r299  
    222222fi
    223223
    224 # Sq-Mod ... V1 has different output. --version is not legal but version
    225 # gets displayed so I guess it's ok... This should work for both.
    226 
    227 #lvmversion=`lvmdiskscan --version | grep "LVM version:" | cut -d: -f2 | cut -d. -f1 | sed -e 's/ //g'`
    228 
    229 lvmversion=`lvmdiskscan --help |
     224lvmversion=`lvmdiskscan --help 2>&1 |
    230225  grep -E "Logical Volume Manager|LVM version:" |
    231226  cut -d: -f2 | cut -d. -f1 |
Note: See TracChangeset for help on using the changeset viewer.