Commit 78a9a7b3 authored by Paolino Paperino's avatar Paolino Paperino
Browse files

2018-07-17: FG; Avoid running multipathd command if executable not found.

parent 1f984c8e
......@@ -37,7 +37,7 @@ print "\t\"data\":[\n\n";
my %shouldBeRemoved;
# handle multipath devices, remove first, later (re)add
if ( $checkMultipath ) {
if ( -e $_multipathd && $checkMultipath ) {
system("$_sudo $_multipathd show > /dev/null 2>&1");
my $exitVal = $? >> 8;
$checkMultipath = 0 if ($exitVal);
......
......@@ -49,7 +49,7 @@ chomp $_multipathd;
my %shouldBeRemoved;
# handle multipath devices, remove first, later (re)add
if ( $checkMultipath ) {
if ( -e $_multipathd && $checkMultipath ) {
system("$_sudo $_multipathd show > /dev/null 2>&1");
my $exitVal = $? >> 8;
$checkMultipath = 0 if ($exitVal);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment