Addon Manager: Clean up backup directories

This commit is contained in:
Chris Hennes
2022-09-15 13:12:43 -05:00
parent d6289e3211
commit 5ce07933e9
3 changed files with 3 additions and 2 deletions

View File

@@ -231,6 +231,7 @@ class GitManager:
os.chdir(original_cwd)
raise e
os.chdir(original_cwd)
shutil.rmtree(backup_path, ignore_errors=True)
def get_remote(self, local_path) -> str:
"""Get the repository that this local path is set to fetch from"""