diff options
| author | Kevin Abel | 2018-02-02 18:15:05 -0600 | 
|---|---|---|
| committer | Kevin Abel | 2018-02-02 18:15:05 -0600 | 
| commit | 601af55b43bc96627359eca06eeec4bf9881c890 (patch) | |
| tree | 1265f7fa413be7489469a286c4e79a375cba59fa /Library | |
| parent | 0254605cd52b1bb92ffe33114c671cc111c5a687 (diff) | |
| download | brew-601af55b43bc96627359eca06eeec4bf9881c890.tar.bz2 | |
Add root dirname as a escape value too
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 | 
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 | 
