mirror of
https://github.com/Jguer/yay
synced 2024-09-18 07:31:53 +00:00
Merge pull request #53 from whereswaldon/nonexec-config
Make default config file non-executable
This commit is contained in:
commit
131e61af5d
|
@ -81,7 +81,7 @@ func (config *Configuration) saveConfig() error {
|
|||
config.NoConfirm = false
|
||||
configfile := os.Getenv("HOME") + "/.config/yay/config.json"
|
||||
marshalledinfo, _ := json.MarshalIndent(config, "", "\t")
|
||||
in, err := os.OpenFile(configfile, os.O_RDWR|os.O_CREATE, 0755)
|
||||
in, err := os.OpenFile(configfile, os.O_RDWR|os.O_CREATE, 0644)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue