Skip to content

Commit 8270acd

Browse files
committed
aosp-monthly,git-repo,github-raw,nix,riscv-toolchains: port changes
mirrorz-org/mirrorz-help@5b25507
1 parent eef5149 commit 8270acd

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

aosp-monthly/aosp-monthly.zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
<tmpl z-lang="bash" z-input="checksum">
1717
# 包含断点续传
18-
curl -OC - {{endpoint}}/aosp-latest.tar # 下载初始化包
18+
curl -LOC - {{endpoint}}/aosp-latest.tar # 下载初始化包
1919
{{#checksum}}
2020
md5sum aosp-latest.tar
21-
curl -q {{endpoint}}/aosp-latest.tar.md5
21+
curl -Lq {{endpoint}}/aosp-latest.tar.md5
2222
{{/checksum}}
2323
tar xf aosp-latest.tar
2424
cd AOSP # 解压得到的 AOSP 工程目录

git-repo/usage.zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 下载
22

33
<tmpl z-lang="bash">
4-
curl {{endpoint}} -o repo
4+
curl -L {{endpoint}} -o repo
55
chmod +x repo
66
</tmpl>
77

github-raw/github-raw.zh.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<tmpl z-lang="bash">
66
# 手动模拟 rosdep init
77
{{sudo}}mkdir -p /etc/ros/rosdep/sources.list.d/
8-
{{sudo}}curl -o /etc/ros/rosdep/sources.list.d/20-default.list {{endpoint}}/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
8+
{{sudo}}curl -o /etc/ros/rosdep/sources.list.d/20-default.list -L {{endpoint}}/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
99
</tmpl>
1010

1111
### stackage global-hints-cache.yaml

nix/nix.zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
- 单用户安装
1212
<tmpl z-lang="bash">
13-
sh <(curl {{endpoint}}/latest/install)
13+
sh <(curl -L {{endpoint}}/latest/install)
1414
</tmpl>
1515

1616
- 多用户安装:
1717
<tmpl z-lang="bash">
18-
sh <(curl {{endpoint}}/latest/install) --daemon
18+
sh <(curl -L {{endpoint}}/latest/install) --daemon
1919
</tmpl>
2020

2121
如果需要,可以在文件列表中手动挑选需要的版本

riscv-toolchains/riscv-toolchains.zh.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
## 单独克隆
1010
git clone {{endpoint}}/git/riscv-collab/riscv-gnu-toolchain.git
1111
## 同时克隆子模块,注意路径为 .git 替换为 .sh
12-
curl {{endpoint}}/git/riscv-collab/riscv-gnu-toolchain.sh | bash
12+
curl -L {{endpoint}}/git/riscv-collab/riscv-gnu-toolchain.sh | bash
1313
# rocket-tools 及其子模块
1414
## 单独克隆
1515
git {{endpoint}}/git/chipsalliance/rocket-tools.git
1616
## 同时克隆子模块
17-
curl {{endpoint}}/git/chipsalliance/rocket-tools.sh | bash
17+
curl -L {{endpoint}}/git/chipsalliance/rocket-tools.sh | bash
1818
</tmpl>
1919

2020
已有项目可以在 <tmpl z-inline>{{endpoint}}/git/</tmpl> 中浏览。

0 commit comments

Comments
 (0)