mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 19:40:15 +10:00
Fix elevation crash
This commit is contained in:
@@ -35,7 +35,7 @@ class PatchSysVolume:
|
|||||||
if os.getuid() == 0:
|
if os.getuid() == 0:
|
||||||
return subprocess.run(*args, **kwargs)
|
return subprocess.run(*args, **kwargs)
|
||||||
else:
|
else:
|
||||||
return subprocess.run(["sudo"] + args[0] + args[1:], **kwargs)
|
return subprocess.run(["sudo"] + [args[0][0]] + args[0][1:], **kwargs)
|
||||||
|
|
||||||
def csr_decode(self, print_status):
|
def csr_decode(self, print_status):
|
||||||
sip_int = int.from_bytes(self.sip_status, byteorder="little")
|
sip_int = int.from_bytes(self.sip_status, byteorder="little")
|
||||||
|
|||||||
Reference in New Issue
Block a user