Skip to content

Commit

Permalink
more readability
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed May 15, 2012
1 parent 01a7388 commit d11f9d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/FusionInventory/Agent/Tools/Win32.pm
Expand Up @@ -166,8 +166,11 @@ sub runCommand {
my $buff = File::Temp->new();
my $void = File::Temp->new();

my $args = { stdout => $buff, no_window => 1 };
$args->{stderr} = $params{no_stderr}?$void:$buff;
my $args = {
stdout => $buff,
stderr => $params{no_stderr} ? $void : $buff,
no_window => 1
};

$job->spawn(
$ENV{SYSTEMROOT}.'/system32/cmd.exe',
Expand Down

0 comments on commit d11f9d9

Please sign in to comment.