summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2011-12-09 23:25:34 +0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2011-12-09 23:25:34 +0700
commitc5ed95b5edcbf5afb7a187b44801253be9181a62 (patch)
treebc74a46e96569f47259b7373ada6efcc2ce1381d
parentdba17aa83aa56ddbd5970f01f4ba675b3925c360 (diff)
downloadvyatta-nat-c5ed95b5edcbf5afb7a187b44801253be9181a62.tar.gz
vyatta-nat-c5ed95b5edcbf5afb7a187b44801253be9181a62.zip
Fix extra line break when rule condition is empty.
-rwxr-xr-xscripts/vyatta-show-nat-rules.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/vyatta-show-nat-rules.pl b/scripts/vyatta-show-nat-rules.pl
index 8c4f1da..ed21020 100755
--- a/scripts/vyatta-show-nat-rules.pl
+++ b/scripts/vyatta-show-nat-rules.pl
@@ -247,8 +247,7 @@ for $rule (@rules) {
print "\n";
printf ($format2, $protocol, $translation_port_str);
print "\n";
- printf ($format1, "", "", $condition) if $condition ne "";
- print "\n";
+ printf ($format1, "", "", "$condition\n") if $condition;
}
print "\n";