From 9967316e90ee2fae12bef23397b96bfb9e1cbbde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duret?= Date: Tue, 10 Sep 2024 15:14:00 +0200 Subject: [PATCH] $command_options was declared twice --- src/os/linux/local/mode/systemdjournal.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/linux/local/mode/systemdjournal.pm b/src/os/linux/local/mode/systemdjournal.pm index 83538124e..2d5d1fa04 100644 --- a/src/os/linux/local/mode/systemdjournal.pm +++ b/src/os/linux/local/mode/systemdjournal.pm @@ -79,7 +79,7 @@ sub manage_selection { my $command_options = '--output json --output-fields MESSAGE --no-pager'; # --output-field option has been added in version 236 if ($journalctl_version < 236) { - my $command_options = '--output json --no-pager'; + $command_options = '--output json --no-pager'; }; if (defined($self->{option_results}->{unit}) && $self->{option_results}->{unit} ne '') {