Skip to content

Commit

Permalink
docker: avoid error where the cache docker-certs directory does not e…
Browse files Browse the repository at this point in the history
…xist, fixes #1128 (#1129)
  • Loading branch information
AlexanderOMara authored Aug 30, 2024
1 parent 1588c06 commit a615835
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 a615835

Please sign in to comment.