fix(export): write config with correct permissions

This commit is contained in:
Jan De Dobbeleer 2024-03-11 09:53:55 +01:00 committed by Jan De Dobbeleer
parent 5b7b4afec9
commit 17dd5c8b58

View file

@ -229,7 +229,7 @@ func (cfg *Config) Write(format string) {
destination = cfg.origin
}
f, err := os.OpenFile(destination, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
f, err := os.OpenFile(destination, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
return
}