Skip to content

Commit

Permalink
Merge pull request #39 from safesoftware/fix-dir-permissions
Browse files Browse the repository at this point in the history
Fix permissions on config directory if it needs to be created
  • Loading branch information
garnold54 authored Mar 7, 2023
2 parents 859893d + 062b752 commit 0b63643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func loginRun(f *loginFlags) func(cmd *cobra.Command, args []string) error {
}
viper.Set("build", buildNum)
// ensure directory where config file is supposed to live exists
err = os.MkdirAll(filepath.Dir(viper.ConfigFileUsed()), 0600)
err = os.MkdirAll(filepath.Dir(viper.ConfigFileUsed()), 0700)
if err != nil {
return err
}
Expand Down

0 comments on commit 0b63643

Please sign in to comment.