]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
general-functions.pl: Only skip lines with a # at the beginning
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Feb 2019 10:28:13 +0000 (10:28 +0000)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 18 Feb 2019 10:36:37 +0000 (11:36 +0100)
This accidientially dropped all lines that include #. That resulted
in colour codes not being loaded from file any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/general-functions.pl

index 2d3eb73d7fff55038397918d689d10e47a5d293e..04e36969c431235d50e75519de7694e02596b974 100644 (file)
@@ -151,7 +151,7 @@ sub readhash
                chop;
 
                # Skip comments.
-               next if ($_ =~ /\#/);
+               next if ($_ =~ /^#/);
 
                ($var, $val) = split /=/, $_, 2;
                if ($var)