From 07baec516f0eaf00f29100a8aaa222da4d166085 Mon Sep 17 00:00:00 2001 From: Aine Date: Thu, 6 Apr 2023 23:43:12 +0300 Subject: [PATCH] truncate on replace --- export/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export/output.go b/export/output.go index 7c3f064..003b759 100644 --- a/export/output.go +++ b/export/output.go @@ -33,5 +33,5 @@ func getOutputSingle(output string) (*os.File, error) { } func getOutputMulti(output string) (*os.File, error) { - return os.OpenFile(output, os.O_WRONLY|os.O_CREATE, 0o644) + return os.OpenFile(output, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o644) }