summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-08-25 11:24:01 -0700
committerGitHub <noreply@github.com>2020-08-25 11:24:01 -0700
commitd5cbb9c8f73419e1b491dd87a048cae16a34412c (patch)
treee7951bba02dae4e61fd1e6a3437339ad2d217d03
parentca369f03c7ccfc9c37391482a015fc340eb762b0 (diff)
parentbc5b6a8388c5c61c7dcb2b1bb5962841e46ca543 (diff)
downloadchef-d5cbb9c8f73419e1b491dd87a048cae16a34412c.tar.gz
Merge pull request #10325 from chef/lcg/fix-windows-gemfile
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index bc74f62960..101e5df8a2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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", __dir__) + "/*.dll")
FileUtils.cp_r assemblies, ruby_exe_dir, verbose: false unless ENV["_BUNDLER_WINDOWS_DLLS_COPIED"]
ENV["_BUNDLER_WINDOWS_DLLS_COPIED"] = "1"
end