From 4da62f3bc38bac1dd6880f35f9972d18e0e5a48e Mon Sep 17 00:00:00 2001 From: JabinGP <1748511181@qq.com> Date: Sat, 16 Oct 2021 20:00:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E5=A1=AB=E9=94=99url=E6=97=B6,=20=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=E5=A4=B9=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=97=A0=E6=B3=95=E9=87=8D=E6=96=B0=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/download.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/theme/download.go b/theme/download.go index e33172b..06fc76b 100644 --- a/theme/download.go +++ b/theme/download.go @@ -68,6 +68,12 @@ func DownloadTheme(themeZipURL string, themeName string) error { if err != nil { log.Errorln("解压失败") log.Errorln(err) + rmErr := os.RemoveAll(path) + if rmErr != nil { + log.Errorln("删除解压失败的文件夹失败") + log.Errorln(rmErr) + return rmErr + } return err } log.Debugln("解压成功,解压到" + path) From f08a02947a9fbbbf9d7c5d8849078a98e2024b23 Mon Sep 17 00:00:00 2001 From: JabinGP <1748511181@qq.com> Date: Sat, 16 Oct 2021 20:04:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E4=B8=BA0.7.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.go b/static/index.go index 2db67d5..a7c060f 100644 --- a/static/index.go +++ b/static/index.go @@ -30,7 +30,7 @@ var ( func init() { Name = "mdout" - Version = "0.7.1" + Version = "0.7.2" ConfigFolderName = "mdout" ConfigFileName = "conf.toml"