mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Change instruction priority
This commit is contained in:
parent
e20f410cb9
commit
34906acef7
|
|
@ -26,16 +26,16 @@ export HOMEBREW_BOTTLE_DOMAIN="https://{{ site.hostname }}/homebrew-bottles"
|
|||
最后,在终端运行以下命令以安装 Homebrew/Linuxbrew:
|
||||
|
||||
```bash
|
||||
# 从 GitHub 获取安装脚本,并修改其中的仓库源,运行以安装 Homebrew/Linuxbrew
|
||||
# 从本镜像下载安装脚本,修改其中的仓库源并安装 Homebrew/Linuxbrew
|
||||
git clone --depth=1 https://{{ site.hostname }}/git/homebrew/install.git brew-install
|
||||
/bin/bash -c "$(sed 's|^BREW_REPO=.*$|BREW_REPO="https://{{ site.hostname }}/git/homebrew/brew.git"|g' brew-install/install.sh)"
|
||||
rm -rf brew-install
|
||||
|
||||
# 也可从 GitHub 获取官方安装脚本,修改其中的仓库源,运行以安装 Homebrew/Linuxbrew
|
||||
/bin/bash -c "$(
|
||||
curl -fsSL https://github.com/Homebrew/install/raw/master/install.sh |
|
||||
sed 's|^BREW_REPO=.*$|BREW_REPO="https://{{ site.hostname }}/git/homebrew/brew.git"|g'
|
||||
)"
|
||||
|
||||
# 若以上命令遇到网络问题,则从本镜像下载安装脚本并安装 Homebrew/Linuxbrew
|
||||
git clone --depth=1 https://{{ site.hostname }}/git/homebrew/install.git brew-install
|
||||
/bin/bash -c "$(sed 's|^BREW_REPO=.*$|BREW_REPO="https://{{ site.hostname }}/git/homebrew/brew.git"|g' brew-install/install.sh)"
|
||||
rm -rf brew-install
|
||||
```
|
||||
|
||||
这样在首次安装的时候也可以使用镜像。
|
||||
|
|
|
|||
Loading…
Reference in New Issue