feat: 替换脚本地址

This commit is contained in:
neo 2022-02-22 19:13:20 +08:00
parent b20037708d
commit ff3ed28fe8
8 changed files with 12 additions and 12 deletions

View File

@ -108,7 +108,7 @@ const SourceGenerate = ({ first }) => {
}
shellArray.push(
'/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"',
'/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"',
);
shellArray.push('');

View File

@ -5,7 +5,7 @@
## 用法 & 指南
```shell
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
```
强烈建议按照教程处理,详情请访问 [文档主页](https://brew.idayer.com/) 。

View File

@ -10,7 +10,7 @@
- 方案名GitHub可以自行命名
- 类型:远程
- URL 地址https://cdn.jsdelivr.net/gh/ineo6/hosts/hosts <CopyButton content='https://cdn.jsdelivr.net/gh/ineo6/hosts/hosts' />
- URL 地址https://gitee.com/ineo6/hosts/raw/master/hosts <CopyButton content='https://gitee.com/ineo6/hosts/raw/master/hosts' />
- 自动更新1 小时
这样就可以和仓库中最新的`hosts`保持同步。

View File

@ -11,7 +11,7 @@
直接执行:
```shell
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
```
然后还需设置环境变量,具体操作步骤如下,一定要仔细阅读。
@ -46,7 +46,7 @@
在命令前面添加`arch -x86_64`,就可以按 X86 模式执行该命令,比如:
```shell
arch -x86_64 /bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
arch -x86_64 /bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
```
## 多版本共存

View File

@ -11,7 +11,7 @@ order: 3
如果之前尝试过其他脚本安装,请移除`Homebrew`后再安装,具体请参考 [FAQ](/guide/faq/#no1-的小秘籍) 。
```shell
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
```
> 默认使用中科大源,如果需要换源参考 [换源](/guide/change-source/)。
@ -125,7 +125,7 @@ brew update
使用官方脚本同样会遇到`uninstall`地址无法访问问题,可以使用下面脚本:
```shell
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/uninstall.sh)"
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/uninstall.sh)"
```
## 其他相关

View File

@ -14,7 +14,7 @@ footer: Open-source MIT Licensed | Copyright © 2021<br />Powered by [Neo](https
## 快速安装
```shell script
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
```
<Center>将以上命令粘贴至终端。脚本内置 <a target="_blank" href="http://mirrors.ustc.edu.cn/help/brew.git.html">中科大镜像</a> 所以能让Homebrew安装的更快。</Center>

View File

@ -3,8 +3,8 @@
STDERR.print <<EOS
Warning: Ruby版本Homebrew安装脚本已被废弃新版脚本使用Bash重写。
请使用以下命令:
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
EOS
Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"'
Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"'

View File

@ -3,8 +3,8 @@
STDERR.print <<EOS
Warning: Ruby版本Homebrew安装脚本已被废弃新版脚本使用Bash重写。
请使用以下命令:
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/uninstall.sh)"
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/uninstall.sh)"
EOS
Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/uninstall.sh)"' + ' uninstall ' + ARGV.join(" ")
Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/uninstall.sh)"' + ' uninstall ' + ARGV.join(" ")