diff options
Diffstat (limited to 'knife/lib')
-rw-r--r-- | knife/lib/chef/knife/download.rb | 3 | ||||
-rw-r--r-- | knife/lib/chef/knife/upload.rb | 3 | ||||
-rw-r--r-- | knife/lib/chef/knife/version.rb | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/knife/lib/chef/knife/download.rb b/knife/lib/chef/knife/download.rb index 2eda642979..b7ceb31261 100644 --- a/knife/lib/chef/knife/download.rb +++ b/knife/lib/chef/knife/download.rb @@ -71,7 +71,8 @@ class Chef error = false pattern_args.each do |pattern| - if Chef::ChefFS::FileSystem.copy_to(pattern, chef_fs, local_fs, config[:recurse] ? nil : 1, config, ui, proc { |entry| format_path(entry) }) + fs_error, result = Chef::ChefFS::FileSystem.copy_to(pattern, chef_fs, local_fs, config[:recurse] ? nil : 1, config, ui, proc { |entry| format_path(entry) }) + if fs_error error = true end end diff --git a/knife/lib/chef/knife/upload.rb b/knife/lib/chef/knife/upload.rb index e8dd052e77..17118247cb 100644 --- a/knife/lib/chef/knife/upload.rb +++ b/knife/lib/chef/knife/upload.rb @@ -73,7 +73,8 @@ class Chef error = false pattern_args.each do |pattern| - if Chef::ChefFS::FileSystem.copy_to(pattern, local_fs, chef_fs, config[:recurse] ? nil : 1, config, ui, proc { |entry| format_path(entry) }) + fs_error, result = Chef::ChefFS::FileSystem.copy_to(pattern, local_fs, chef_fs, config[:recurse] ? nil : 1, config, ui, proc { |entry| format_path(entry) }) + if fs_error error = true end end diff --git a/knife/lib/chef/knife/version.rb b/knife/lib/chef/knife/version.rb index 9fe6ba90ab..d4b5b93017 100644 --- a/knife/lib/chef/knife/version.rb +++ b/knife/lib/chef/knife/version.rb @@ -17,7 +17,7 @@ class Chef class Knife KNIFE_ROOT = File.expand_path("../..", __dir__) - VERSION = "18.0.205".freeze + VERSION = "18.0.208".freeze end end |