summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-02-27 16:33:24 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2015-02-27 16:33:24 -0800
commitb76e0d03be912395b3d7f2ffdb4fbfc2771eb06d (patch)
tree214536f6e18dc96d6cf02ef701e874c4641bdd62
parent10a34f79731b1727a2ba747d4a485eb08bc41fa4 (diff)
downloadchef-b76e0d03be912395b3d7f2ffdb4fbfc2771eb06d.tar.gz
Use tar_cmd instead of tar directly
-rw-r--r--lib/chef/knife/cookbook_site_share.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/cookbook_site_share.rb b/lib/chef/knife/cookbook_site_share.rb
index 64bc639a06..9dd05aff87 100644
--- a/lib/chef/knife/cookbook_site_share.rb
+++ b/lib/chef/knife/cookbook_site_share.rb
@@ -96,7 +96,7 @@ class Chef
if config[:dry_run]
ui.info("Not uploading #{cookbook_name}.tgz due to --dry-run flag.")
- result = shell_out!("tar -tzf #{cookbook_name}.tgz", :cwd => tmp_cookbook_dir)
+ result = shell_out!("#{tar_cmd} -tzf #{cookbook_name}.tgz", :cwd => tmp_cookbook_dir)
ui.info(result.stdout)
FileUtils.rm_rf tmp_cookbook_dir
return