Fix on-model building with CLI

This commit is contained in:
Mykola Grymalyuk
2021-10-04 12:47:27 -06:00
parent e210c0cbe6
commit e8d2b4f63e

View File

@@ -95,7 +95,7 @@ If you plan to create the USB for another machine, please select the "Change Mod
# Avoid running the root patcher if we're just building
if self.args.build:
build.BuildOpenCore(settings.custom_model, settings).build_opencore()
build.BuildOpenCore(settings.custom_model or settings.computer.real_model, settings).build_opencore()
elif self.args.patch_sys_vol:
if self.args.moj_cat_accel:
print("- Set Mojave/Catalina root patch configuration")