Tweak compile_info_command()

- Fix comment
- use $globals{VERSION} for the version number

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-04-30 14:12:34 -07:00
parent d959fd4445
commit ccfa181a6d

View File

@ -597,7 +597,7 @@ EOF
}
#
# Generate date_command()
# Generate info_command()
#
sub compile_info_command() {
my $date = localtime;
@ -607,7 +607,7 @@ sub compile_info_command() {
"# Echo the date and time when this script was compiled along with the Shorewall version",
"#",
"info_command() {" ,
qq( echo "compiled $date by Shorewall version \$SHOREWALL_VERSION") ,
qq( echo "compiled $date by Shorewall version $globals{VERSION}") ,
"}\n" );
}