diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 242c27572..09b18fff3 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -1221,7 +1221,7 @@ sub copy2( $ ) { ################################################################################ EOF - print $script $_ unless /^\s*$/; + print $script $_ if defined && ! /^\s*$/; while ( ) { chomp;