From 9f4dd738573bdb7e370569d29efcf605cc38d2ec Mon Sep 17 00:00:00 2001 From: Joachim Tingvold Date: Sun, 29 Mar 2015 13:00:42 +0200 Subject: Skip blank lines. --- bootstrap/make-missing-conf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap/make-missing-conf.pl b/bootstrap/make-missing-conf.pl index b128695..0159452 100755 --- a/bootstrap/make-missing-conf.pl +++ b/bootstrap/make-missing-conf.pl @@ -40,7 +40,7 @@ my $base_ipv4 = Net::IP->new( $nms::config::base_ipv4net ); my ($cp_oct, $cs_oct, $ct_oct) = ($nms::config::base_ipv4net =~ m/^(\d+)\.(\d+)\.(\d+)\..*/); while ( ){ - next if ( $_ =~ m/^#/); + next if ( $_ =~ m/^(#|$)/); # comment or blank line my $line = $_; chomp $line; # -- cgit v1.2.3