Skip to content

Commit 64794e0

Browse files
committed
update codes.
1 parent 23216a9 commit 64794e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var rootCmd = &cobra.Command{
6363
path := util.FormatPath(config.Output)
6464
_ = os.MkdirAll(filepath.Dir(path), 0755)
6565
var err error
66-
file, err = os.OpenFile(path, os.O_CREATE|os.O_APPEND|os.O_RDWR, 0666)
66+
file, err = os.OpenFile(path, os.O_CREATE|os.O_TRUNC|os.O_RDWR, 0666)
6767
if err != nil {
6868
vlog.Exit(1, "Open file %v error: %\n", path, err)
6969
return

0 commit comments

Comments
 (0)