mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 10:23:46 +01:00
Allow comments in query file
This commit is contained in:
parent
07d6692aa7
commit
9ca8fc67bb
@ -2997,6 +2997,8 @@ if (exists $commandline{namefromfile}) {
|
||||
# Double chomp if needed
|
||||
chomp($l) for (0..1);
|
||||
|
||||
$l =~ s/#.*$//g;
|
||||
|
||||
my ($k, $sql_line) = split(/\s*=\s*/, $l);
|
||||
|
||||
if ($k eq $commandline{namefromfile}) {
|
||||
|
Loading…
Reference in New Issue
Block a user