From 9f3d3453df08f7834d0bbb36158b0d55a360ef2f Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Wed, 3 Nov 2021 11:44:29 -0600 Subject: [PATCH] Avoid Installing OC to ESP if not requested --- resources/cli_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/cli_menu.py b/resources/cli_menu.py index 407f363c5..95e91c75b 100644 --- a/resources/cli_menu.py +++ b/resources/cli_menu.py @@ -1101,7 +1101,7 @@ to your USB drive. if installer.format_drive(disk) is True: # Only install if OC is found # Allows a user to create a macOS Installer without OCLP if desired - if self.constants.opencore_release_folder.exists(): + if self.constants.opencore_release_folder.exists() and self.constants.walkthrough is True: # ESP will always be the first partition when formatted by disk utility install.tui_disk_installation.install_opencore(self, f"disk{disk}", "1") if installer.create_installer(installer_path, "OCLP-Installer") is True: