CoreTap.default_remote: Use Linuxbrew/core [Linux]
This commit is contained in:
parent
f354160c71
commit
fdcdf7cb5c
@ -24,7 +24,12 @@ git() {
|
|||||||
|
|
||||||
git_init_if_necessary() {
|
git_init_if_necessary() {
|
||||||
BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew"
|
BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew"
|
||||||
|
if [[ -n "$HOMEBREW_MACOS" ]] || [[ -n "$HOMEBREW_FORCE_HOMEBREW_ORG" ]]
|
||||||
|
then
|
||||||
CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core"
|
CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core"
|
||||||
|
else
|
||||||
|
CORE_OFFICIAL_REMOTE="https://github.com/Linuxbrew/homebrew-core"
|
||||||
|
fi
|
||||||
|
|
||||||
safe_cd "$HOMEBREW_REPOSITORY"
|
safe_cd "$HOMEBREW_REPOSITORY"
|
||||||
if [[ ! -d ".git" ]]
|
if [[ ! -d ".git" ]]
|
||||||
|
9
Library/Homebrew/extend/os/linux/tap.rb
Normal file
9
Library/Homebrew/extend/os/linux/tap.rb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
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
|
1
Library/Homebrew/extend/os/tap.rb
Normal file
1
Library/Homebrew/extend/os/tap.rb
Normal file
@ -0,0 +1 @@
|
|||||||
|
require "extend/os/linux/tap" if OS.linux?
|
@ -735,3 +735,5 @@ class TapConfig
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require "extend/os/tap"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user