mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-10 05:20:14 +00:00
Fix bug#4570 - [FVT] xCAT::Utils->runcmd() did not set a correct $::RUNCMD_RC when streaming mode is using
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user