sys_patch.py: Avoid prompts if kext has already been accepted

This commit is contained in:
Mykola Grymalyuk
2022-08-27 12:57:45 -06:00
parent b105a73a10
commit 237b086e17
2 changed files with 21 additions and 1 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ class OpenCoreLegacyPatcher:
# Now that we have commit info, update nightly link
if self.constants.commit_info[0] != "Running from source":
self.constants.installer_pkg_url_nightly = self.constants.installer_pkg_url_nightly.replace("main", self.constants.commit_info[0])
branch = self.constants.commit_info[0]
branch = branch.replace("refs/heads/", "")
self.constants.installer_pkg_url_nightly = self.constants.installer_pkg_url_nightly.replace("main", branch)
defaults.generate_defaults.probe(self.computer.real_model, True, self.constants)