Skip to content
Snippets Groups Projects
Commit fdcdf7cb authored by Shaun Jackman's avatar Shaun Jackman
Browse files

CoreTap.default_remote: Use Linuxbrew/core [Linux]

parent f354160c
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,12 @@ git() {
git_init_if_necessary() {
BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew"
CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core"
if [[ -n "$HOMEBREW_MACOS" ]] || [[ -n "$HOMEBREW_FORCE_HOMEBREW_ORG" ]]
then
CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core"
else
CORE_OFFICIAL_REMOTE="https://github.com/Linuxbrew/homebrew-core"
fi
safe_cd "$HOMEBREW_REPOSITORY"
if [[ ! -d ".git" ]]
......
class CoreTap < Tap
def default_remote
if ENV["HOMEBREW_FORCE_HOMEBREW_ORG"]
"https://github.com/Homebrew/homebrew-core".freeze
else
"https://github.com/Linuxbrew/homebrew-core".freeze
end
end
end
require "extend/os/linux/tap" if OS.linux?
......@@ -735,3 +735,5 @@ class TapConfig
end
end
end
require "extend/os/tap"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment