diff options
-rwxr-xr-x | sboconfig | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -169,6 +169,9 @@ sub _fixup_conf { my @fixed; my %keys; foreach my $line (@lines) { + # if it's a comment or blank line, just pass it through + if ($line =~ /^(#|\s*$)/) { push @fixed, $line; next; } + my ($key, $val) = split /=/, $line; next if exists $keys{$key}; $keys{$key}++; |