kdk_handler.py: Fix cleanup logic

This commit is contained in:
Mykola Grymalyuk
2023-03-28 09:25:52 -06:00
parent afae4f8eda
commit 513f20bbb1

View File

@@ -488,7 +488,7 @@ class KernelDebugKitObject:
if kdk_folder.name.endswith(".kdk") or kdk_folder.name.endswith(".pkg"):
should_remove = True
for build in exclude_builds:
if build != "":
if build == "":
continue
if kdk_folder.name.endswith(f"_{build}.kdk") or kdk_folder.name.endswith(f"_{build}.pkg"):
should_remove = False