mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Correct progress messages
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
447b7cda4e
commit
a30708519d
@ -5317,7 +5317,7 @@ sub convert_to_directives() {
|
|||||||
|
|
||||||
my $dirtest = qr|^$sharedir/+shorewall6?(?:/.*)?$|;
|
my $dirtest = qr|^$sharedir/+shorewall6?(?:/.*)?$|;
|
||||||
|
|
||||||
progress_message3 "Converting 'FORMAT' and 'COMMENT' lines to compiler directives...";
|
progress_message3 "Converting 'FORMAT', 'SECTION' and 'COMMENT' lines to compiler directives...";
|
||||||
|
|
||||||
for my $dir ( @path ) {
|
for my $dir ( @path ) {
|
||||||
unless ( $dir =~ /$dirtest/ ) {
|
unless ( $dir =~ /$dirtest/ ) {
|
||||||
@ -5352,6 +5352,7 @@ EOF
|
|||||||
if ( system( "diff -q $file ${file}.bak > /dev/null" ) ) {
|
if ( system( "diff -q $file ${file}.bak > /dev/null" ) ) {
|
||||||
progress_message3 " File $file updated - old file renamed ${file}.bak";
|
progress_message3 " File $file updated - old file renamed ${file}.bak";
|
||||||
} elsif ( rename "${file}.bak" , $file ) {
|
} elsif ( rename "${file}.bak" , $file ) {
|
||||||
|
progress_message " File $file not updated -- no bare 'COMMENT', 'SECTION' or 'FORMAT' lines found";
|
||||||
progress_message " File $file not updated -- no bare 'COMMENT' or 'FORMAT' lines found";
|
progress_message " File $file not updated -- no bare 'COMMENT' or 'FORMAT' lines found";
|
||||||
} else {
|
} else {
|
||||||
warning message "Unable to rename ${file}.bak to $file:$!";
|
warning message "Unable to rename ${file}.bak to $file:$!";
|
||||||
|
Loading…
Reference in New Issue
Block a user