remove temporary dir after copying the files

This commit is contained in:
Dan Anglin 2024-09-14 10:18:53 +01:00
parent 7c5609dd00
commit 0d945c8e57
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -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 {