config fixes

This commit is contained in:
Harald Hope 2023-12-15 17:00:50 -08:00
parent de24236606
commit 9c1df9b511

4
pinxi
View file

@ -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);
} }