remove temporary dir after copying the files
This commit is contained in:
parent
7c5609dd00
commit
0d945c8e57
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ func manageExternalConfig(cfg config.ExternalConfig, homeConfigDir string) error
|
||||||
return fmt.Errorf("unable to clone the git repository: %w", err)
|
return fmt.Errorf("unable to clone the git repository: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
defer os.RemoveAll(clonedRepo)
|
||||||
|
|
||||||
fmt.Println("Git repository cloned to:", clonedRepo)
|
fmt.Println("Git repository cloned to:", clonedRepo)
|
||||||
|
|
||||||
validationFunc := func(relativePath string) bool {
|
validationFunc := func(relativePath string) bool {
|
||||||
|
|
Loading…
Reference in a new issue