X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/5bece6bf8c66ade0960290b6fe75623da7968e09..5e257ef3d52a0bbb3de3179f83e0c20d841a823c:/supermicro-kvm.pl diff --git a/supermicro-kvm.pl b/supermicro-kvm.pl index e24cb19..79e4f03 100755 --- a/supermicro-kvm.pl +++ b/supermicro-kvm.pl @@ -27,14 +27,14 @@ sub read_inifile { my @sections = (); while() { chomp; - + next if (m/^#/); - + if (m/^\s*\[(.*)\]\s*$/) { push @sections, $1; next; } - + if (@sections) { if (m/^\s*([^=]+)\s*=\s*(.*)\s*$/) { ${$Ini{$sections[$#sections]}}{$1} = $2;