From ae2a015c6796fd1dbdb4f6e318dde09fbe772ff2 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 5 Oct 2021 22:16:50 -0600 Subject: [PATCH] Fix references Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/545 --- resources/cli_menu.py | 2 +- resources/sys_patch.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/cli_menu.py b/resources/cli_menu.py index 1bad0433c..315ecce5e 100644 --- a/resources/cli_menu.py +++ b/resources/cli_menu.py @@ -854,7 +854,7 @@ system_profiler SPHardwareDataType | grep 'Model Identifier' ], [ f"Set Secure Boot Model (SBM):\t\tCurrently {self.constants.secure_status}", - MenuOptions(self.constants.custom_model or self.constant.computer.real_model, self.constants).change_sbm, + MenuOptions(self.constants.custom_model or self.constants.computer.real_model, self.constants).change_sbm, ], [f"Set Vault Mode:\t\t\t\tCurrently {self.constants.vault}", MenuOptions(self.constants.custom_model or self.constants.computer.real_model, self.constants).change_vault], ] diff --git a/resources/sys_patch.py b/resources/sys_patch.py index f4c002be7..82c5d1d5c 100644 --- a/resources/sys_patch.py +++ b/resources/sys_patch.py @@ -117,7 +117,7 @@ class PatchSysVolume: print("- Creating Backup folder") utilities.process_status( - self.elevated( + utilities.elevated( ["cp", "-r", f"{self.mount_location}/{location}", f"{self.mount_location}/{location}-Backup"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, @@ -125,7 +125,7 @@ class PatchSysVolume: ) print("- Zipping Backup folder") utilities.process_status( - self.elevated( + utilities.elevated( ["ditto", "-c", "-k", "--sequesterRsrc", "--keepParent", f"{self.mount_location}/{location}-Backup", f"{self.mount_location}/{location_zip}"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, @@ -134,7 +134,7 @@ class PatchSysVolume: print("- Removing Backup folder") utilities.process_status( - self.elevated( + utilities.elevated( ["rm", "-r", f"{self.mount_location}/{location}-Backup"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT,