Add newlines to embedded multi-line shell and perl

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-08 12:17:00 -07:00
parent 50405f57ba
commit 94097e2561

View File

@ -1958,7 +1958,7 @@ sub embedded_shell( $ ) {
while ( read_a_line( 0, 0, 0, 0 ) ) {
last if $last = $currentline =~ s/^\s*END(\s+SHELL)?\s*;?//;
$command .= $currentline;
$command .= "$currentline\n";
}
fatal_error ( "Missing END SHELL" ) unless $last;
@ -1992,7 +1992,7 @@ sub embedded_perl( $ ) {
while ( read_a_line( 0, 0, 0, 0 ) ) {
last if $last = $currentline =~ s/^\s*END(\s+PERL)?\s*;?//;
$command .= $currentline;
$command .= "$currentline\n";
}
fatal_error ( "Missing END PERL" ) unless $last;