general-functions.pl: Only skip lines with a # at thebeginning
Commit Message
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>
---
config/cfgroot/general-functions.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hello Michael,
thanks for the patch and figuring out why the graphs are not displayed
anymore - merged!
Best regards,
-Stefan
> 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>
> ---
> config/cfgroot/general-functions.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/config/cfgroot/general-functions.pl
> b/config/cfgroot/general-functions.pl
> index 2d3eb73d7..04e36969c 100644
> --- a/config/cfgroot/general-functions.pl
> +++ b/config/cfgroot/general-functions.pl
> @@ -151,7 +151,7 @@ sub readhash
> chop;
>
> # Skip comments.
> - next if ($_ =~ /\#/);
> + next if ($_ =~ /^#/);
>
> ($var, $val) = split /=/, $_, 2;
> if ($var)
@@ -151,7 +151,7 @@ sub readhash
chop;
# Skip comments.
- next if ($_ =~ /\#/);
+ next if ($_ =~ /^#/);
($var, $val) = split /=/, $_, 2;
if ($var)