aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index a8eb9a5d2..663ecf89b 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -213,9 +213,13 @@ module HomebrewArgvExtension
end
def downcased_unique_named
- # Only lowercase names, not paths or URLs
+ # Only lowercase names, not paths, bottle filenames or URLs
@downcased_unique_named ||= named.map do |arg|
- arg.include?("/") ? arg : arg.downcase
+ if arg.include?("/") || arg.end_with?(".tar.gz")
+ arg
+ else
+ arg.downcase
+ end
end.uniq
end
end