lib/chef/knife/download_essentials.rb in knife-essentials-1.0.0.beta3 vs lib/chef/knife/download_essentials.rb in knife-essentials-1.0.0.beta4

- old
+ new

@@ -48,10 +48,12 @@ exit 1 end error = false pattern_args.each do |pattern| - error ||= ChefFS::FileSystem.copy_to(pattern, chef_fs, local_fs, config[:recurse] ? nil : 1, config, ui, proc { |entry| format_path(entry) }) + if ChefFS::FileSystem.copy_to(pattern, chef_fs, local_fs, config[:recurse] ? nil : 1, config, ui, proc { |entry| format_path(entry) }) + error = true + end end if error exit 1 end end