diff options
author | Wilfried JEANNIARD <willou.com@gmail.com> | 2016-04-28 23:19:21 +0200 |
---|---|---|
committer | Wilfried JEANNIARD <willou.com@gmail.com> | 2016-04-28 23:19:21 +0200 |
commit | f986892d1b96da97888c796e69000982f2c65491 (patch) | |
tree | 3d1a3642bd22135fba4dcf28cffeafa5ebe163b7 | |
parent | 9856652c0834a8c073158d574924352643a27fbb (diff) | |
download | chef-f986892d1b96da97888c796e69000982f2c65491.tar.gz |
use shell_out instead of backticks
-rw-r--r-- | lib/chef/knife/cookbook_site_install.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/cookbook_site_install.rb b/lib/chef/knife/cookbook_site_install.rb index b08fe90170..ae688c723a 100644 --- a/lib/chef/knife/cookbook_site_install.rb +++ b/lib/chef/knife/cookbook_site_install.rb @@ -144,7 +144,7 @@ class Chef extract_command = "tar zxvf \"#{convert_path upstream_file}\"" if Chef::Platform.windows? # FIXED: Detect if we have the bad tar from git on Windows: https://github.com/opscode/chef/issues/1753 - tar_version = `tar --version`.tr("\n"," ") + tar_version = shell_out("tar --version").stdout.tr("\n"," ") if /GNU tar/.match(tar_version) ui.info("GNU tar detected") extract_command << " --force-local" |