From c2ece46e1b9d509c395b903ad0e472024832941f Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 14 Jul 2016 15:41:09 +0800 Subject: [PATCH] various: don't assume non-OS X == Linux. --- Library/Homebrew/cmd/update.sh | 3 ++- Library/Homebrew/cmd/vendor-install.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index e6ba3d1ee4..0d6a0fc063 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -24,7 +24,8 @@ git_init_if_necessary() { then BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew" CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core" - else + elif [[ -n "$HOMEBREW_LINUX" ]] + then BREW_OFFICIAL_REMOTE="https://github.com/Linuxbrew/brew" CORE_OFFICIAL_REMOTE="https://github.com/Linuxbrew/homebrew-core" fi diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh index 7d1a79a4b1..e3e082182b 100644 --- a/Library/Homebrew/cmd/vendor-install.sh +++ b/Library/Homebrew/cmd/vendor-install.sh @@ -18,7 +18,8 @@ then ruby_URL="" ruby_SHA="" fi -else +elif [[ -n "$HOMEBREW_LINUX" ]] +then ruby_URL="https://homebrew.bintray.com/bottles-portable/portable-ruby-2.0.0-p648.x86_64_linux.bottle.tar.gz" ruby_SHA="dbb5118a22a6a75cc77e62544a3d8786d383fab1bdaf8c154951268807357bf0" fi