From 10201023f0f3ae54cfc16b801370451d6850717a Mon Sep 17 00:00:00 2001 From: yo Date: Fri, 22 Dec 2023 09:42:42 +0100 Subject: [PATCH] v0.6.3: BUGFIX: Append to current.godit so we do not block when file already exist --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index eb2dee6..b103f06 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,7 @@ import ( ) const ( - version = "0.6.2" + version = "0.6.3" ) var ( @@ -54,7 +54,7 @@ func NewWriter(file string) (*bufio.Writer, *os.File, error) { var f *os.File var err error - f, err = os.OpenFile(file, os.O_CREATE|os.O_WRONLY, 0640) + f, err = os.OpenFile(file, os.O_CREATE|os.O_RDWR|os.O_APPEND, 0640) if err != nil { return nil, nil, err }