mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 12:00:15 +10:00
kdk_handler.py: Enforce full pathing for subprocess
This commit is contained in:
@@ -588,14 +588,13 @@ class KernelDebugKitUtilities:
|
|||||||
|
|
||||||
# TODO: Check whether enough disk space is available
|
# TODO: Check whether enough disk space is available
|
||||||
|
|
||||||
result = utilities.elevated(["installer", "-pkg", kdk_path, "-target", "/"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
result = utilities.elevated(["/usr/sbin/installer", "-pkg", kdk_path, "-target", "/"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
logging.info("Failed to install KDK:")
|
logging.info("Failed to install KDK:")
|
||||||
logging.info(result.stdout.decode('utf-8'))
|
logging.info(result.stdout.decode('utf-8'))
|
||||||
if result.stderr:
|
if result.stderr:
|
||||||
logging.info(result.stderr.decode('utf-8'))
|
logging.info(result.stderr.decode('utf-8'))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user