Skip to content

Commit

Permalink
Merge pull request #14415 from NgZiming/master
Browse files Browse the repository at this point in the history
fix: panic when environment variables are empty
  • Loading branch information
spowelljr authored Jun 24, 2022
2 parents 231c72d + 360cc86 commit b496d66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ func displayVersion(version string) {
func displayEnviron(env []string) {
for _, kv := range env {
bits := strings.SplitN(kv, "=", 2)
if len(bits) < 2 {
continue
}
k := bits[0]
v := bits[1]
if strings.HasPrefix(k, "MINIKUBE_") || k == constants.KubeconfigEnvVar {
Expand Down

0 comments on commit b496d66

Please sign in to comment.