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,