Merge pull request #11440 from scpeters/extract_downcased_version

extract: use downcased version in filename
This commit is contained in:
Bo Anderson 2021-05-27 15:07:56 +01:00 committed by GitHub
commit 7ae9cc3467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@ module Homebrew
# Remove bottle blocks, they won't work.
result.sub!(/ bottle do.+?end\n\n/m, "") if destination_tap != source_tap
path = destination_tap.path/"Formula/#{name}@#{version}.rb"
path = destination_tap.path/"Formula/#{name}@#{version.to_s.downcase}.rb"
if path.exist?
unless args.force?
odie <<~EOS