feat: 校验后移除 checksums 文件

This commit is contained in:
耗子
2023-10-25 02:14:33 +08:00
parent 0e10823448
commit e96d95700a
+1
View File
@@ -339,6 +339,7 @@ func UpdatePanel(panelInfo PanelInfo) error {
if check != panelInfo.DownloadName+": OK" {
return errors.New("下载文件校验失败")
}
Remove("/www/panel/" + panelInfo.Checksums)
color.Greenln("文件校验完成")
color.Greenln("更新新版本...")