mirror of
https://github.com/Jguer/yay.git
synced 2025-10-04 00:03:11 -04: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…
x
Reference in New Issue
Block a user