update 2024-09-08 20:10:29

This commit is contained in:
actions-user 2024-09-08 20:10:29 +08:00
parent 2a6105247d
commit 14fe0e674d

View File

@ -1,15 +0,0 @@
--- a/internal/bootstrap/config.go
+++ b/internal/bootstrap/config.go
@@ -68,11 +68,7 @@ func InitConfig() {
}
conf.Conf.TempDir = absPath
}
- err := os.RemoveAll(filepath.Join(conf.Conf.TempDir))
- if err != nil {
- log.Errorln("failed delete temp file:", err)
- }
- err = os.MkdirAll(conf.Conf.TempDir, 0o777)
+ err := os.MkdirAll(conf.Conf.TempDir, 0o777)
if err != nil {
log.Fatalf("create temp dir error: %+v", err)
}