diff options
Diffstat (limited to 'Library/Homebrew/tap.rb')
| -rw-r--r-- | Library/Homebrew/tap.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index ebfc4cd80..2d1c47e32 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -26,11 +26,11 @@ class Tap raise "Invalid tap name '#{args.join("/")}'" end - # we special case homebrew so users don't have to shift in a terminal - user = "Homebrew" if user == "homebrew" + # We special case homebrew and linuxbrew so that users don't have to shift in a terminal. + user = user.capitalize if ["homebrew", "linuxbrew"].include? user repo = repo.strip_prefix "homebrew-" - if user == "Homebrew" && (repo == "homebrew" || repo == "core") + if ["Homebrew", "Linuxbrew"].include?(user) && ["core", "homebrew"].include?(repo) return CoreTap.instance end |
