Avoid patching on macOS 12

Can harmfully damage the OS if not properly validated first
This commit is contained in:
Mykola Grymalyuk
2021-06-02 09:12:43 -06:00
parent dd798c02d1
commit dc6b14f962
2 changed files with 3 additions and 3 deletions

View File

@@ -470,7 +470,7 @@ class PatchSysVolume:
print("Root Patching not required for this machine!")
elif self.model not in ModelArray.SupportedSMBIOS11 and self.constants.assume_legacy is False:
print("Cannot run on this machine, model is unsupported!")
elif self.constants.detected_os < self.constants.big_sur:
elif self.constants.detected_os != self.constants.big_sur:
print("Cannot run on this OS, requires macOS 11!")
else:
self.check_status()
@@ -508,7 +508,7 @@ class PatchSysVolume:
def start_unpatch(self):
if self.constants.custom_model is not None:
print("Unpatching must be done on target machine!")
elif self.constants.detected_os < self.constants.big_sur:
elif self.constants.detected_os != self.constants.big_sur:
print("Cannot run on this OS, requires macOS 11!")
else:
self.check_status()