Fix Mojave/Catalina kextcache error handling

This commit is contained in:
Mykola Grymalyuk
2021-07-21 21:55:43 -06:00
parent 5fefc7185e
commit 43131150a4
+1 -1
View File
@@ -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")