summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-12-21 21:26:45 -0800
committerTim Smith <tsmith84@gmail.com>2020-12-21 21:26:45 -0800
commit8963d4932ebe4a58edf1397f95b7e0479f9f56b0 (patch)
treefbc45660a75a9c76680228ad274299161bb6b974 /Rakefile
parent07d00d7bc07ccdca7f34abf5bb05ef2d77ebb8dc (diff)
downloadchef-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--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 09c8d5e131..2500c93ea0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"