diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-18 13:11:01 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-24 22:30:37 -0700 |
commit | ba934c5910b9af3bf64300794ec2a35fa8528448 (patch) | |
tree | d8856b59c458abf92a96b42899544af03f6d5221 | |
parent | 894e9d4bf863d307c0090476df2ff551a9856fb9 (diff) | |
download | chef-ba934c5910b9af3bf64300794ec2a35fa8528448.tar.gz |
Fix dll copying in Gemfile to remove Dir.pwd
We can invoke bundler from other directories
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | Gemfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ eval_gemfile("./Gemfile.local") if File.exist?("./Gemfile.local") if RUBY_PLATFORM.match?(/mswin|mingw|windows/) instance_eval do ruby_exe_dir = RbConfig::CONFIG["bindir"] - assemblies = Dir.glob(File.expand_path("distro/ruby_bin_folder", Dir.pwd) + "/*.dll") + assemblies = Dir.glob(File.expand_path("distro/ruby_bin_folder", File.dirname(__FILE__)) + "/*.dll") FileUtils.cp_r assemblies, ruby_exe_dir, verbose: false unless ENV["_BUNDLER_WINDOWS_DLLS_COPIED"] ENV["_BUNDLER_WINDOWS_DLLS_COPIED"] = "1" end |