diff options
author | John Keiser <jkeiser@opscode.com> | 2013-04-09 16:38:20 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-06-07 13:12:30 -0700 |
commit | c70e5ec0e0a0f93f0bfa5ace15c90dc3d70093da (patch) | |
tree | 818bb3acb1d7411155712806bb4f97fd5c66a7d9 /lib/chef/knife/xargs.rb | |
parent | 1499bac9ace26db6db4913958f66e4f7015ec71c (diff) | |
download | chef-c70e5ec0e0a0f93f0bfa5ace15c90dc3d70093da.tar.gz |
Don't print extra newlines on diff
Diffstat (limited to 'lib/chef/knife/xargs.rb')
-rw-r--r-- | lib/chef/knife/xargs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/xargs.rb b/lib/chef/knife/xargs.rb index 076544f24c..6c18eb153e 100644 --- a/lib/chef/knife/xargs.rb +++ b/lib/chef/knife/xargs.rb @@ -241,7 +241,7 @@ class Chef diff = `diff -u #{old_file.path} #{tempfile.path}` diff.gsub!(old_file.path, "#{format_path(file[:file])} (old)") diff.gsub!(tempfile.path, "#{format_path(file[:file])} (new)") - output diff + stdout.write diff ensure old_file.close! end |