mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
+ Fix output-file option
This commit is contained in:
parent
6a67e6abe9
commit
08ad4a8d47
@ -441,7 +441,7 @@ sub display {
|
||||
$force_long_output = 1 if (defined($self->{option_results}->{debug}));
|
||||
|
||||
if (defined($self->{option_results}->{output_file})) {
|
||||
if (!open (STDOUT, '>>', $self->{option_results}->{output_file})) {
|
||||
if (!open (STDOUT, '>', $self->{option_results}->{output_file})) {
|
||||
$self->output_add(severity => 'UNKNOWN',
|
||||
short_msg => "cannot open file '" . $self->{option_results}->{output_file} . "': $!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user