Skip to content

Commit

Permalink
feat: 替换脚本地址
Browse files Browse the repository at this point in the history
  • Loading branch information
neo committed Feb 22, 2022
1 parent b200377 commit ff3ed28
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .dumi/theme/builtins/SourceGenerate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`保持同步。
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/m1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
```

然后还需设置环境变量,具体操作步骤如下,一定要仔细阅读。
Expand Down Expand Up @@ -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)"
```

## 多版本共存
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down Expand Up @@ -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)"
```

## 其他相关
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -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)"'
4 changes: 2 additions & 2 deletions uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ")

0 comments on commit ff3ed28

Please sign in to comment.