Implement update shim

This commit is contained in:
Mykola Grymalyuk
2024-05-26 19:21:49 -06:00
parent b6346137f3
commit 7d686a29cf
9 changed files with 111 additions and 7 deletions

View File

@@ -385,8 +385,8 @@ class macOSInstallerFlashFrame(wx.Frame):
with open(self.constants.installer_sh_path, "r") as f:
logging.info(f"installer.sh contents:\n{f.read()}")
args = [self.constants.oclp_helper_path, "/bin/sh", self.constants.installer_sh_path]
result = subprocess.run(args, capture_output=True, text=True)
args = ["/bin/sh", self.constants.installer_sh_path]
result = subprocess_wrapper.run_as_root(args, capture_output=True, text=True)
output = result.stdout
error = result.stderr if result.stderr else ""