From 43131150a4a21290c8f42ebf6a2e07dddd8008b0 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Wed, 21 Jul 2021 21:55:43 -0600 Subject: [PATCH] Fix Mojave/Catalina kextcache error handling --- Resources/SysPatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index f359d4a89..e55c6ff2e 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -118,7 +118,7 @@ class PatchSysVolume: # kextcache always returns 0, even if it fails # Check the output for 'KernelCache ID' to see if the cache was successfully rebuilt - if result.returncode != 0 or (self.constants.detected_os < self.constants.catalina and "KernelCache ID" not in result): + if result.returncode != 0 or (self.constants.detected_os < self.constants.catalina and "KernelCache ID" not in result.stdout.decode()): self.success_status = False print("- Unable to build new kernel cache") print("\nPlease report this to Github")