Changeset 2170


Ignore:
Timestamp:
Mar 25, 2009, 1:37:44 AM (11 years ago)
Author:
bruno
Message:
  • Fix version syntax for new lvmdiskscan commands by calling --version instead of --help
File:
1 edited

Legend:

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

    r2072 r2170  
    234234fi
    235235
     236# Older lvmdiskscan use --help, newer --version
     237lvmopt="--help"
     238lvmdiskscan $lvmopt 2>&1 | grep -q -- "--version"
     239if [ $? -eq 0 ]; then
     240    lvmopt="--version"
     241fi
     242
     243
    236244lvmversion=`lvmdiskscan --help 2>&1 |
    237245  grep -E "Logical Volume Manager|LVM version:" |
Note: See TracChangeset for help on using the changeset viewer.