From 19a3ee86701f29151b6e6a844eae72f1c19e46be Mon Sep 17 00:00:00 2001 From: Night Cat <107802416+MHNightCat@users.noreply.github.com> Date: Sun, 14 Apr 2024 22:53:33 +0800 Subject: [PATCH] update download theme function --- src/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index 3e3e3120..ff7bd039 100644 --- a/src/main.go +++ b/src/main.go @@ -194,8 +194,9 @@ func downloadAndInstallTheme(dir, zipName, zipUrl, zipFolder string) error { err = Unzip(filepath.Join(SuperFileMainDir, zipName), dir) if err != nil { return err + } else { + os.Remove(filepath.Join(SuperFileMainDir, zipName)) } - os.Remove(filepath.Join(SuperFileMainDir, zipName)) } return nil }