mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-01 18:35:36 +00:00
fix runcmd so that the default is to redirect stderr to stdout for processing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -879,11 +879,9 @@ sub runcmd
|
||||
|
||||
my ($class, $cmd, $exitcode, $refoutput) = @_;
|
||||
$::RUNCMD_RC = 0;
|
||||
if (defined($xCAT::Utils::NO_STDERR_REDIRECT) && !$xCAT::Utils::NO_STDERR_REDIRECT)
|
||||
{
|
||||
if (!($cmd =~ /2>&1$/)) { $cmd .= ' 2>&1'; }
|
||||
# redirect stderr to stdout
|
||||
if (!($cmd =~ /2>&1$/)) { $cmd .= ' 2>&1'; }
|
||||
|
||||
}
|
||||
|
||||
if ($::VERBOSE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user