mirror of
https://gitlab.com/etke.cc/emm.git
synced 2025-02-01 21:05:48 +00:00
truncate on replace
This commit is contained in:
parent
7281464843
commit
07baec516f
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user