summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfried JEANNIARD <willou.com@gmail.com>2016-04-26 19:17:52 +0200
committerWilfried JEANNIARD <willou.com@gmail.com>2016-04-26 19:17:52 +0200
commita5200b235f01adaf723dff672db00030875299f0 (patch)
treed19f1e5e7010ddb043f5697262b4ebcf2d89b5c0
parent002e559a94117796566fe32f2687b7f41597464d (diff)
downloadchef-a5200b235f01adaf723dff672db00030875299f0.tar.gz
cookbook site install : tar error on windows
tar bundled with chef-dk don't support the --force-local option - fixes : #4862
-rw-r--r--lib/chef/knife/cookbook_site_install.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/knife/cookbook_site_install.rb b/lib/chef/knife/cookbook_site_install.rb
index 802fdd792b..3041270048 100644
--- a/lib/chef/knife/cookbook_site_install.rb
+++ b/lib/chef/knife/cookbook_site_install.rb
@@ -143,9 +143,6 @@ class Chef
ui.info("Uncompressing #{@cookbook_name} version #{version}.")
# FIXME: Detect if we have the bad tar from git on Windows: https://github.com/opscode/chef/issues/1753
extract_command = "tar zxvf \"#{convert_path upstream_file}\""
- if Chef::Platform.windows?
- extract_command << " --force-local"
- end
shell_out!(extract_command, :cwd => @install_path)
end