From 9aba32f40d1dc76e7a5ad622133dec347620a09c Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Wed, 17 Feb 2021 16:18:00 -0700 Subject: [PATCH] Fixed failing if lastStart.txt file does not exist --- cmd/minikube/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/minikube/main.go b/cmd/minikube/main.go index c600a31a0376..257d6a63fe97 100644 --- a/cmd/minikube/main.go +++ b/cmd/minikube/main.go @@ -145,7 +145,7 @@ func setFlags() { } if os.Args[1] == "start" { fp := localpath.LastStartLog() - if err := os.Remove(fp); err != nil { + if err := os.Remove(fp); err != nil && !os.IsNotExist(err) { klog.Warningf("Unable to delete file %s: %v", err) } if !pflag.CommandLine.Changed("log_file") {