Merge pull request #11122 from lilongfeng0902/minikube-lilf

Better to use "0777" than "0o777",instead of only in Go
pull/11160/head
Medya Ghazizadeh 2021-04-20 10:07:21 -07:00 committed by GitHub
commit f5035b5c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ var RootCmd = &cobra.Command{
Long: `minikube provisions and manages local Kubernetes clusters optimized for development workflows.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
for _, path := range dirs {
if err := os.MkdirAll(path, 0o777); err != nil {
if err := os.MkdirAll(path, 0777); err != nil {
exit.Error(reason.HostHomeMkdir, "Error creating minikube directory", err)
}
}