fix linters & switch to official linter (#4808)

This commit is contained in:
Marko
2020-05-07 16:17:43 +02:00
committed by GitHub
parent 9535c47067
commit 678010c45e
7 changed files with 14 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ func WriteConfigVals(dir string, vals map[string]string) error {
data += fmt.Sprintf("%s = \"%s\"\n", k, v)
}
cfile := filepath.Join(dir, "config.toml")
return ioutil.WriteFile(cfile, []byte(data), 0666)
return ioutil.WriteFile(cfile, []byte(data), 0600)
}
// RunWithArgs executes the given command with the specified command line args