Fix OCLP-CLI crash

This commit is contained in:
Mykola Grymalyuk
2021-06-19 21:15:09 -06:00
parent 128e68d735
commit 2626f9733d

View File

@@ -136,7 +136,7 @@ class OpenCoreLegacyPatcher():
if args.model:
print(f"- Using custom model: {args.model}")
self.constants.custom_model = args.model
self.set_defaults(self.computer.custom_model, False)
self.set_defaults(self.constants.custom_model, False)
self.build_opencore()
else:
print(f"- Using detected model: {self.constants.computer.real_model}")