docs(bash): 更新 README 中的 curl 命令示例
- 在所有 curl 命令中添加 -L 选项以支持重定向 - 添加 -f 选项以在发生错误时返回非零退出代码 - 保留 -sS 选项以保持静默模式并显示错误信息
This commit is contained in:
29
uv/README.md
Normal file
29
uv/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# uv
|
||||
|
||||
## macOS and Linux 安装
|
||||
|
||||
1. 设置 `INSTALLER_BASE_URL` 环境变量
|
||||
|
||||
```bash
|
||||
export INSTALLER_BASE_URL=https://b.sugarscat.cn
|
||||
```
|
||||
|
||||
2. 安装 `uv`
|
||||
|
||||
```bash
|
||||
curl -LsSf https://i.sugarscat.cn/me/script/-/raw/main/uv/install.sh | sh
|
||||
```
|
||||
|
||||
## Windows 安装
|
||||
|
||||
1. 设置 `INSTALLER_BASE_URL` 环境变量
|
||||
|
||||
```bash
|
||||
set INSTALLER_BASE_URL=https://b.sugarscat.cn
|
||||
```
|
||||
|
||||
2. 安装 `uv`
|
||||
|
||||
```bash
|
||||
powershell -ExecutionPolicy ByPass -c "irm https://i.sugarscat.cn/me/script/-/raw/main/uv/install.ps1 | iex"
|
||||
```
|
||||
Reference in New Issue
Block a user