aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorKevin Abel2018-02-02 18:15:05 -0600
committerKevin Abel2018-02-02 18:15:05 -0600
commit601af55b43bc96627359eca06eeec4bf9881c890 (patch)
tree1265f7fa413be7489469a286c4e79a375cba59fa /Library
parent0254605cd52b1bb92ffe33114c671cc111c5a687 (diff)
downloadbrew-601af55b43bc96627359eca06eeec4bf9881c890.tar.bz2
Add root dirname as a escape value too
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