Skip to content

Commit

Permalink
Merge pull request #7 from circleci/fix-permissions
Browse files Browse the repository at this point in the history
We need execute permissions in order to create files in a directory
  • Loading branch information
Zachary Scott authored Jun 6, 2018
2 parents d7510bf + 624ea4e commit 3a1d7c4
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) {
Logger.FatalOnError(
fmt.Sprintf("Error creating directory: '%s'", path),
os.Mkdir(path, 0644),
os.Mkdir(path, 0700),
)
} else {
Logger.FatalOnError(fmt.Sprintf("Error accessing '%s'", path), err)
Expand Down

0 comments on commit 3a1d7c4

Please sign in to comment.