diff options
author | jkeiser <jkeiser@opscode.com> | 2013-01-11 16:04:48 -0800 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-06-07 13:12:18 -0700 |
commit | 9c6025e7d1a53da181a4309483d5192343e93394 (patch) | |
tree | 3526931757a5bf3b384cf397f62af5690a161fd2 /lib/chef/knife/download.rb | |
parent | ed3150d2b58cd04df699be09c86740c036b27710 (diff) | |
download | chef-9c6025e7d1a53da181a4309483d5192343e93394.tar.gz |
Add knife upload tests; print warnings/errors on undeleteable things
Diffstat (limited to 'lib/chef/knife/download.rb')
-rw-r--r-- | lib/chef/knife/download.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/knife/download.rb b/lib/chef/knife/download.rb index 4133b503b6..d4ae363087 100644 --- a/lib/chef/knife/download.rb +++ b/lib/chef/knife/download.rb @@ -40,8 +40,12 @@ class Chef exit 1 end + error = false pattern_args.each do |pattern| - Chef::ChefFS::FileSystem.copy_to(pattern, chef_fs, local_fs, config[:recurse] ? nil : 1, config, ui) + error ||= Chef::ChefFS::FileSystem.copy_to(pattern, chef_fs, local_fs, config[:recurse] ? nil : 1, config, ui) + end + if error + exit 1 end end end |