Skip to content

Commit

Permalink
Merge pull request #897 from jhawthorn/extconf_dir_exist
Browse files Browse the repository at this point in the history
Use Dir.exist? instead of Dir.exists?
  • Loading branch information
carlosmn authored Jan 6, 2022
2 parents cb60dfa + 40be15d commit 0f1753d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/rugged/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def self.run_cmake(timeout, args)
end

Dir.chdir(LIBGIT2_DIR) do
Dir.mkdir("build") if !Dir.exists?("build")
Dir.mkdir("build") if !Dir.exist?("build")

Dir.chdir("build") do
# On Windows, Ruby-DevKit is MSYS-based, so ensure to use MSYS Makefiles.
Expand Down

0 comments on commit 0f1753d

Please sign in to comment.