metallib_handler.py: Capture output

This commit is contained in:
Mykola Grymalyuk
2024-08-30 14:49:09 -06:00
parent fccde7214b
commit 8a9db4c2a5

View File

@@ -266,7 +266,7 @@ class MetalLibraryObject:
result = subprocess_wrapper.run_as_root([
"/usr/sbin/installer", "-pkg", metallib if metallib else self.constants.metallib_download_path, "-target", "/"
])
], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if result.returncode != 0:
subprocess_wrapper.log(result)
return False