Fix references

Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/545
This commit is contained in:
Mykola Grymalyuk
2021-10-05 22:16:50 -06:00
parent 9cbfe5be6a
commit ae2a015c67
2 changed files with 4 additions and 4 deletions

View File

@@ -854,7 +854,7 @@ system_profiler SPHardwareDataType | grep 'Model Identifier'
], ],
[ [
f"Set Secure Boot Model (SBM):\t\tCurrently {self.constants.secure_status}", 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], [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],
] ]

View File

@@ -117,7 +117,7 @@ class PatchSysVolume:
print("- Creating Backup folder") print("- Creating Backup folder")
utilities.process_status( utilities.process_status(
self.elevated( utilities.elevated(
["cp", "-r", f"{self.mount_location}/{location}", f"{self.mount_location}/{location}-Backup"], ["cp", "-r", f"{self.mount_location}/{location}", f"{self.mount_location}/{location}-Backup"],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
@@ -125,7 +125,7 @@ class PatchSysVolume:
) )
print("- Zipping Backup folder") print("- Zipping Backup folder")
utilities.process_status( utilities.process_status(
self.elevated( utilities.elevated(
["ditto", "-c", "-k", "--sequesterRsrc", "--keepParent", f"{self.mount_location}/{location}-Backup", f"{self.mount_location}/{location_zip}"], ["ditto", "-c", "-k", "--sequesterRsrc", "--keepParent", f"{self.mount_location}/{location}-Backup", f"{self.mount_location}/{location_zip}"],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
@@ -134,7 +134,7 @@ class PatchSysVolume:
print("- Removing Backup folder") print("- Removing Backup folder")
utilities.process_status( utilities.process_status(
self.elevated( utilities.elevated(
["rm", "-r", f"{self.mount_location}/{location}-Backup"], ["rm", "-r", f"{self.mount_location}/{location}-Backup"],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,