We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23216a9 commit 64794e0Copy full SHA for 64794e0
1 file changed
cmd/root.go
@@ -63,7 +63,7 @@ var rootCmd = &cobra.Command{
63
path := util.FormatPath(config.Output)
64
_ = os.MkdirAll(filepath.Dir(path), 0755)
65
var err error
66
- file, err = os.OpenFile(path, os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
+ file, err = os.OpenFile(path, os.O_CREATE|os.O_TRUNC|os.O_RDWR, 0666)
67
if err != nil {
68
vlog.Exit(1, "Open file %v error: %\n", path, err)
69
return
0 commit comments