sys_patch_detect.py: Add KDK check to Ventura root patching

This commit is contained in:
Mykola Grymalyuk
2022-06-10 14:17:50 -06:00
parent 9fb2efee8d
commit 92d2f0ba23
4 changed files with 71 additions and 21 deletions

View File

@@ -19,4 +19,4 @@ def detect_kernel_minor():
def detect_kernel_build():
# Return OS build
# Example Output: 21A5522h (string)
return subprocess.run("sw_vers -buildVersion".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode()
return subprocess.run("sw_vers -buildVersion".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode().strip()