diff options
| author | Francisco Souza | 2017-08-19 19:59:33 -0400 |
|---|---|---|
| committer | Francisco Souza | 2017-08-19 19:59:33 -0400 |
| commit | f28430049512dd1e82261779e91ae30434c24b25 (patch) | |
| tree | 8bd966542d45752d721cf57d420736e24d60888d /Library | |
| parent | 3b92f69869f0bc88c2f99854392535d4d522902c (diff) | |
| download | brew-f28430049512dd1e82261779e91ae30434c24b25.tar.bz2 | |
Skip search_remote on cask search when HOMEBREW_NO_GITHUB_API is set
Fixes #3069.
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| |
