fix more warnings
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f01ac0f74c
commit
97edcc23e4
@ -854,7 +854,7 @@ sub runcmd
|
||||
|
||||
my ($class, $cmd, $exitcode, $refoutput) = @_;
|
||||
$::RUNCMD_RC = 0;
|
||||
if (!$xCAT::Utils::NO_STDERR_REDIRECT)
|
||||
if (defined($xCAT::Utils::NO_STDERR_REDIRECT) && !$xCAT::Utils::NO_STDERR_REDIRECT)
|
||||
{
|
||||
if (!($cmd =~ /2>&1$/)) { $cmd .= ' 2>&1'; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user