Improve the logic in auto-installation; Add auto-remove on the failed files

This commit is contained in:
Timothyxxx
2024-05-10 16:41:20 +08:00
parent bead06afc8
commit e2741c64b0

View File

@@ -100,6 +100,10 @@ class VirtualMachineManager:
# skip the downloaded .zip file
if vm_name == DOWNLOADED_FILE_NAME:
continue
# Skip the .DS_Store file on macOS
if vm_name == ".DS_Store":
continue
flag = True
for vm_path in vm_paths:
if vm_name + ".vmx" in vm_path: