docs(bash): 更新 README 中的 curl 命令示例
- 在所有 curl 命令中添加 -L 选项以支持重定向 - 添加 -f 选项以在发生错误时返回非零退出代码 - 保留 -sS 选项以保持静默模式并显示错误信息
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
### 初始化脚本
|
||||
|
||||
```bash
|
||||
curl -sSL https://i.sugarscat.cn/me/script/-/raw/main/bash/init.sh | bash
|
||||
curl -LsSf https://i.sugarscat.cn/me/script/-/raw/main/bash/init.sh | bash
|
||||
```
|
||||
|
||||
进行的操作有:
|
||||
@@ -15,7 +15,7 @@ curl -sSL https://i.sugarscat.cn/me/script/-/raw/main/bash/init.sh | bash
|
||||
3. 设置时区 `Asia/Shanghai` 和时间同步
|
||||
|
||||
```bash
|
||||
curl -sSL https://i.sugarscat.cn/me/script/-/raw/main/bash/init-ali.sh | bash
|
||||
curl -LsSf https://i.sugarscat.cn/me/script/-/raw/main/bash/init-ali.sh | bash
|
||||
```
|
||||
|
||||
进行的操作有:
|
||||
@@ -33,7 +33,7 @@ curl -sSL https://i.sugarscat.cn/me/script/-/raw/main/bash/init-ali.sh | bash
|
||||
> 该脚本不适合 NAS 系统使用,部分 NAS 的磁盘挂载点在 `/tmp` 目录下,该脚本会清理掉 NAS 的数据。
|
||||
|
||||
```bash
|
||||
curl -sSL https://i.sugarscat.cn/me/script/-/raw/main/bash/clean.sh | bash
|
||||
curl -LsSf https://i.sugarscat.cn/me/script/-/raw/main/bash/clean.sh | bash
|
||||
```
|
||||
|
||||
进行的操作有:
|
||||
|
||||
Reference in New Issue
Block a user