diff options
| author | Markus Reiter | 2017-08-20 16:24:41 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-20 16:24:41 +0200 |
| commit | 1eccaf28dbbdd4a6041c44b11a26dfa995626ed7 (patch) | |
| tree | 8bd966542d45752d721cf57d420736e24d60888d /Library | |
| parent | 3b92f69869f0bc88c2f99854392535d4d522902c (diff) | |
| parent | f28430049512dd1e82261779e91ae30434c24b25 (diff) | |
| download | brew-1eccaf28dbbdd4a6041c44b11a26dfa995626ed7.tar.bz2 | |
Merge pull request #3070 from fsouza/fix-brew-cask-search
Skip search_remote on cask search when HOMEBREW_NO_GITHUB_API is set
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/search.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb index e89dced92..b299f03ce 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/search.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb @@ -15,6 +15,7 @@ module Hbc end def self.search_remote(query) + return [] if ENV["HOMEBREW_NO_GITHUB_API"] matches = GitHub.search_code(user: "caskroom", path: "Casks", filename: query, extension: "rb") matches.map do |match| |
