diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-12-21 21:26:45 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-12-21 21:26:45 -0800 |
commit | 8963d4932ebe4a58edf1397f95b7e0479f9f56b0 (patch) | |
tree | fbc45660a75a9c76680228ad274299161bb6b974 /Rakefile | |
parent | 07d00d7bc07ccdca7f34abf5bb05ef2d77ebb8dc (diff) | |
download | chef-8963d4932ebe4a58edf1397f95b7e0479f9f56b0.tar.gz |
Use tr instead of gsub where we can
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -97,8 +97,8 @@ task :update_chef_exec_dll do sh("hab pkg install chef/chef-powershell-shim") sh("hab pkg install chef/chef-powershell-shim-x86") - x64 = `hab pkg path chef/chef-powershell-shim`.chomp.gsub(/\\/, "/") - x86 = `hab pkg path chef/chef-powershell-shim-x86`.chomp.gsub(/\\/, "/") + x64 = `hab pkg path chef/chef-powershell-shim`.chomp.tr('\\', "/") + x86 = `hab pkg path chef/chef-powershell-shim-x86`.chomp.tr('\\', "/") FileUtils.rm_rf(Dir["distro/ruby_bin_folder/AMD64/*"]) FileUtils.rm_rf(Dir["distro/ruby_bin_folder/x86/*"]) puts "Copying #{x64}/bin/* to distro/ruby_bin_folder/AMD64" |