aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsboconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/sboconfig b/sboconfig
index 819602d..0dbebb0 100755
--- a/sboconfig
+++ b/sboconfig
@@ -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}++;