Skip to content

Commit

Permalink
Avoid error where the cache docker-certs directory does not exist, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Aug 30, 2024
1 parent 1588c06 commit fb206b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion environment/vm/lima/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (l limaVM) copyCerts() error {

// copy to cache dir
dockerCertsCacheDir := filepath.Join(config.CacheDir(), "docker-certs")
if err := l.host.RunQuiet("rm", "-r", dockerCertsCacheDir); err != nil {
if err := l.host.RunQuiet("rm", "-rf", dockerCertsCacheDir); err != nil {
return err
}
if err := l.host.RunQuiet("mkdir", "-p", dockerCertsCacheDir); err != nil {
Expand Down

0 comments on commit fb206b2

Please sign in to comment.