Skip to content

Commit

Permalink
修复无法创建日志的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnjk committed Oct 7, 2024
1 parent bd11680 commit a6c0695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func main() {
}
fmt.Println("日志重置完成:", newFilePath)
}
os.MkdirAll("./.autoinst/logs", os.ModePerm)
} else {
os.MkdirAll(".autoinst/logs", os.ModePerm)
}
logFile, err := os.Create(logFilePath)

Expand Down

0 comments on commit a6c0695

Please sign in to comment.