mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 10:23:46 +01:00
fixed split() arguments
This commit is contained in:
parent
8e70621aee
commit
2404d1261f
@ -2999,7 +2999,8 @@ if (exists $commandline{namefromfile}) {
|
|||||||
|
|
||||||
$l =~ s/#.*$//g;
|
$l =~ s/#.*$//g;
|
||||||
|
|
||||||
my ($k, $sql_line) = split(/\s*=\s*/, $l, 1);
|
my ($k, $sql_line) = split(/\s*=\s*/, $l, 2);
|
||||||
|
#printf("l: %s\nk: %s sql: %s\n", $l, $k, $sql_line);
|
||||||
|
|
||||||
if ($k eq $commandline{namefromfile}) {
|
if ($k eq $commandline{namefromfile}) {
|
||||||
$sql = $sql_line;
|
$sql = $sql_line;
|
||||||
|
Loading…
Reference in New Issue
Block a user