aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-07-14 15:41:09 +0800
committerXu Cheng2016-07-14 15:41:09 +0800
commitc2ece46e1b9d509c395b903ad0e472024832941f (patch)
tree318eb694c9e1915d65391c3382a46eaa99648464 /Library
parent43a962a5cdb3ad6d9ffca0c37d73da6553d0f6b6 (diff)
downloadbrew-c2ece46e1b9d509c395b903ad0e472024832941f.tar.bz2
various: don't assume non-OS X == Linux.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.sh3
-rw-r--r--Library/Homebrew/cmd/vendor-install.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index e6ba3d1ee..0d6a0fc06 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 7d1a79a4b..e3e082182 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