Fixed all volume group run

Howdy,

Fixed the handling for "all" volume groups.
Added in handling for UNKNOWN status and exiting with a fair error message in that case.


Later.
On 07/01/2014 12:30 PM, veverjak wrote:
>
> Great thanks for another commit.
>
> Would you mind not changing this line? I've intended this fction to 
> check only for first argument.
> If you would input multiple args, you wouldn't get positive result for 
> neither.
>
> I will gladly merge rest to my repo.
>
Howdy,

I changed this for correctness, with past setup if it were passed 
multiple volume groups, it would check the first and ignore any 
additional entries passed. This is what allowed the "all" method to seem 
like it worked when in fact the wrong parameters were passed.

Example:
vgs system and backup, function was passed "backup system", it was 
dropping 'system', which is really wrong.

Another alternative is to quote the parameter passed so that spaces do 
not make it extra parameters,

so pass:

"backup system"

instead of

backup system

That way $1 is the correct (though something that will fail) parameter 
passed.

Later,

-- 
Bill Carlson

Anything is possible, given Time and Money.