mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
metallib_handler.py: Capture output
This commit is contained in:
@@ -266,7 +266,7 @@ class MetalLibraryObject:
|
|||||||
|
|
||||||
result = subprocess_wrapper.run_as_root([
|
result = subprocess_wrapper.run_as_root([
|
||||||
"/usr/sbin/installer", "-pkg", metallib if metallib else self.constants.metallib_download_path, "-target", "/"
|
"/usr/sbin/installer", "-pkg", metallib if metallib else self.constants.metallib_download_path, "-target", "/"
|
||||||
])
|
], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
subprocess_wrapper.log(result)
|
subprocess_wrapper.log(result)
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user