Fix crash with no boot args

Fixes #304
This commit is contained in:
Dhinak G
2021-06-15 14:36:54 -04:00
committed by GitHub
parent 178c604507
commit af6c98b54d
+1 -1
View File
@@ -26,7 +26,7 @@ class OpenCoreLegacyPatcher():
self.constants.custom_cpu_model = 1
self.constants.custom_cpu_model_value = custom_cpu_model_value.split("%00")[0]
if "-v" in Utilities.get_nvram("boot-args", decode=False):
if "-v" in (Utilities.get_nvram("boot-args", decode=False) or ""):
self.constants.verbose_debug = True
# Check if running in RecoveryOS