mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 11:30:15 +10:00
Fix references
Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/545
This commit is contained in:
@@ -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],
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user