diff --git a/magefiles/external.go b/magefiles/external.go index d501be4..440ee28 100644 --- a/magefiles/external.go +++ b/magefiles/external.go @@ -47,6 +47,8 @@ func manageExternalConfig(cfg config.ExternalConfig, homeConfigDir string) error return fmt.Errorf("unable to clone the git repository: %w", err) } + defer os.RemoveAll(clonedRepo) + fmt.Println("Git repository cloned to:", clonedRepo) validationFunc := func(relativePath string) bool {