mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
config fixes
This commit is contained in:
parent
de24236606
commit
9c1df9b511
4
pinxi
4
pinxi
|
@ -1190,11 +1190,11 @@ sub set {
|
||||||
s/^\s+//;
|
s/^\s+//;
|
||||||
s/\s+$//;
|
s/\s+$//;
|
||||||
s/'|"//g;
|
s/'|"//g;
|
||||||
s/true/1/i; # switch to 1/0 perl boolean
|
|
||||||
s/false/0/i; # switch to 1/0 perl boolean
|
|
||||||
next unless length;
|
next unless length;
|
||||||
($key, $val) = split(/\s*=\s*/, $_, 2);
|
($key, $val) = split(/\s*=\s*/, $_, 2);
|
||||||
next unless length($val);
|
next unless length($val);
|
||||||
|
$val =~ s/true/1/i; # switch to 1/0 perl boolean
|
||||||
|
$val =~ s/false/0/i; # switch to 1/0 perl boolean
|
||||||
if (!$b_show){
|
if (!$b_show){
|
||||||
process_item($key,$val);
|
process_item($key,$val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue