mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
create file if it doesn't exist
This commit is contained in:
parent
dd6dd60e98
commit
6524cfce0c
@ -58,7 +58,7 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
f, err := os.OpenFile(*outgoingFile, os.O_WRONLY, 0600)
|
||||
f, err := os.OpenFile(*outgoingFile, os.O_CREATE|os.O_WRONLY, 0600)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user