diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-27 16:33:24 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-27 16:33:24 -0800 |
commit | b76e0d03be912395b3d7f2ffdb4fbfc2771eb06d (patch) | |
tree | 214536f6e18dc96d6cf02ef701e874c4641bdd62 /lib/chef/knife/cookbook_site_share.rb | |
parent | 10a34f79731b1727a2ba747d4a485eb08bc41fa4 (diff) | |
download | chef-b76e0d03be912395b3d7f2ffdb4fbfc2771eb06d.tar.gz |
Use tar_cmd instead of tar directly
Diffstat (limited to 'lib/chef/knife/cookbook_site_share.rb')
-rw-r--r-- | lib/chef/knife/cookbook_site_share.rb | 2 |
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 |