mirror of
https://gitlab.com/etke.cc/emm.git
synced 2026-03-08 08:50:31 +00:00
truncate on replace
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user