]> git.zerfleddert.de Git - snom-frontend/commitdiff
specifically filter out comments
authormichael <michael>
Sun, 21 May 2006 23:07:19 +0000 (23:07 +0000)
committermichael <michael>
Sun, 21 May 2006 23:07:19 +0000 (23:07 +0000)
snom.pl

diff --git a/snom.pl b/snom.pl
index b34ab64f4a9b4d28b83a76f3cb334dbc198d8c59..8062aaf9bc06af56fd8809713a6353512c105199 100755 (executable)
--- a/snom.pl
+++ b/snom.pl
@@ -1,5 +1,5 @@
 #!/bin/sh
-#$Id: snom.pl,v 1.21 2006-05-21 23:06:48 michael Exp $
+#$Id: snom.pl,v 1.22 2006-05-21 23:07:19 michael Exp $
 
 PATH=/opt/csw/bin:/opt/local/bin:/usr/bin:/bin exec perl -w -x "$0" "$@"
 
@@ -22,6 +22,9 @@ my %Config = ();
 my @sections = ();
 while(<INIFILE>) {
        chomp;
+
+       next if (m/^#/);
+       
        if (m/^\s*\[(.*)\]\s*$/) {
                push @sections, $1;
                next;
Impressum, Datenschutz