Skip to content

Commit

Permalink
We need execute permissions in order to create files in a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
royvandewater committed Jun 5, 2018
1 parent 61f09cd commit 624ea4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func createConfig() (err error) {
if _, err = os.Stat(path); os.IsNotExist(err) {
fatalOnError(
fmt.Sprintf("Error creating directory: '%s'", path),
os.Mkdir(path, 0644),
os.Mkdir(path, 0700),
)
} else {
fatalOnError(fmt.Sprintf("Error accessing '%s'", path), err)
Expand Down

0 comments on commit 624ea4e

Please sign in to comment.