mirror of
https://github.com/kenzok8/openwrt-packages.git
synced 2025-05-01 19:31:08 +08:00
16 lines
439 B
Diff
16 lines
439 B
Diff
--- a/internal/bootstrap/config.go
|
|
+++ b/internal/bootstrap/config.go
|
|
@@ -69,11 +69,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)
|
|
}
|