Fix bug#4570 - [FVT] xCAT::Utils->runcmd() did not set a correct $::RUNCMD_RC when streaming mode is using

This commit is contained in:
GONG Jie 2015-03-09 14:45:07 +08:00
parent f5d79bdaa2
commit d381d3e723

View File

@ -1013,10 +1013,11 @@ sub runcmd
}
# store the return string
#push @$outref,$output;
close(PIPE); # This will set the $? properly
}
# now if not streaming process errors
if (($?) && (!defined($stream)))
if ($?)
{
$::RUNCMD_RC = $? >> 8;
my $displayerror = 1;