mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-19 05:40:01 +10:00
gui.py: Add better stdout printing
This commit is contained in:
@@ -245,8 +245,9 @@ def generate_installer_creation_script(script_location, installer_path, disk):
|
||||
|
||||
with script_location.open("w") as script:
|
||||
script.write(f'''#!/bin/bash
|
||||
diskutil eraseDisk HFS+ OCLP-Installer {disk}
|
||||
"{createinstallmedia_path}" --volume /Volumes/OCLP-Installer --nointeraction
|
||||
earse_disk='diskutil eraseDisk HFS+ OCLP-Installer {disk}'
|
||||
if $earse_disk; then
|
||||
"{createinstallmedia_path}" --volume /Volumes/OCLP-Installer --nointeraction
|
||||
fi
|
||||
''')
|
||||
|
||||
return True
|
||||
Reference in New Issue
Block a user