Skip to content

Commit

Permalink
token: Init directory with permissions for token file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidk committed May 24, 2023
1 parent ef411cc commit a3a40f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func loadToken(args *GlobalOptions, host string) (string, error) {

func ensureConfigPathExists(configDir string) error {
dotConfigNtgrrc := dotConfigDirName(configDir)
err := os.MkdirAll(dotConfigNtgrrc, os.ModeDir)
err := os.MkdirAll(dotConfigNtgrrc, os.ModeDir|0700)
return err
}

Expand Down

0 comments on commit a3a40f6

Please sign in to comment.