mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2026-02-21 11:18:41 +01:00
Explicitly import module File::Which
This ensures to get runtime errors if module is not installed Signed-off-by: Georg Schönberger <gschoenberger@thomas-krenn.com>
This commit is contained in:
committed by
Georg Schönberger
parent
d8b3212573
commit
39e518db4d
@@ -28,6 +28,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use Getopt::Long qw(:config no_ignore_case);
|
||||
use File::Which;
|
||||
|
||||
our $VERBOSITY = 0;
|
||||
our $VERSION = "2.1";
|
||||
@@ -1218,7 +1219,6 @@ MAIN: {
|
||||
if(defined($version)){ print $NAME . "\nVersion: ". $VERSION . "\n"; }
|
||||
# Check storcli tool
|
||||
if(!defined($storcli)){
|
||||
eval('use File::Which');
|
||||
if($platform eq 'linux'){
|
||||
$storcli = which('storcli');
|
||||
if(!defined($storcli)){
|
||||
|
||||
Reference in New Issue
Block a user