refactor(bash): 更新系统清理脚本并增加 NAS 系统保护措施

- 在 README.md 中添加关于 NAS 系统不适用的警告
- 在 clean.sh 脚本中增加 NAS 系统检测和确认步骤
- 优化脚本结构,增加警告提示和确认操作
- 更新脚本中的注释和输出信息,提高用户体验
This commit is contained in:
2025-06-02 18:15:37 +08:00
parent 899dc42448
commit aa0d9f5057
2 changed files with 37 additions and 38 deletions

View File

@@ -26,6 +26,12 @@ curl -sSL https://i.sugarscat.cn/me/script/-/raw/main/bash/init-ali.sh | bash
### 系统清理脚本
> [!CAUTION]
>
> **删库警告**
>
> 该脚本不适合 NAS 系统使用,部分 NAS 的磁盘挂载点在 `/tmp` 目录下,该脚本会清理掉 NAS 的数据。
```bash
curl -sSL https://i.sugarscat.cn/me/script/-/raw/main/bash/clean.sh | bash
```