Skip to content

Commit

Permalink
feat: 校验后移除 checksums 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 24, 2023
1 parent 0e10823 commit e96d957
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("更新新版本...")
Expand Down

0 comments on commit e96d957

Please sign in to comment.