aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 2774f2fad..ed316fa7f 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -306,7 +306,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
url_pathname = Pathname.new(@url)
until ext = url_pathname.extname[/[^?]+/]
url_pathname = url_pathname.dirname
- return if url_pathname.to_s == "."
+ return if url_pathname.to_s == "." || url_pathname.to_s == "/"
end
ext
end