summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-01 12:14:37 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-01 12:14:37 -0800
commit4451c1d65e9f1d8306eb55a9ddb62962d61ab088 (patch)
treeb94cdd1507a57ad7e7883ec8b36333d457823a85
parent20cf494e8077bf1ad1006a78565df280405326a4 (diff)
downloadvyatta-config-mgmt-4451c1d65e9f1d8306eb55a9ddb62962d61ab088.tar.gz
vyatta-config-mgmt-4451c1d65e9f1d8306eb55a9ddb62962d61ab088.zip
Add newline after diff.
-rwxr-xr-xscripts/vyatta-config-mgmt.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index 452bcc6..b3acc8d 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -277,9 +277,9 @@ if ($action eq 'diff') {
my $tmp_config_file2 = "/tmp/config.boot2.$$";
system("cli-shell-api showCfg --show-active-only > $tmp_config_file");
system("cli-shell-api showCfg --show-working-only > $tmp_config_file2");
- my $diff = `diff -u -w $tmp_config_file $tmp_config_file2`;
+ my $diff = `diff -u $tmp_config_file $tmp_config_file2`;
$diff = filter_file_lines($diff);
- print $diff;
+ print "$diff\n";
system("rm $tmp_config_file $tmp_config_file2");
} elsif ($args eq 0) {
my $rev1 = $ARGV[0];
@@ -291,7 +291,7 @@ if ($action eq 'diff') {
$diff = filter_file_lines($diff);
$diff = filter_version_string($diff);
if (defined $diff and length($diff) > 0) {
- print $diff;
+ print "$diff\n";
} else {
print "No changes between working and "
. "revision $rev1 configurations\n";
@@ -306,7 +306,7 @@ if ($action eq 'diff') {
my $filename2 = cm_commit_get_file_name($rev2);
my $diff = `zdiff -u $filename2 $filename`;
$diff = filter_file_lines($diff);
- print $diff;
+ print "$diff\n";
}
exit 0;
}