From af6c98b54dd2ac4c35ae8f5e5df769369ba0a352 Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Tue, 15 Jun 2021 14:36:54 -0400 Subject: [PATCH] Fix crash with no boot args Fixes #304 --- OpenCore-Patcher.command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenCore-Patcher.command b/OpenCore-Patcher.command index eae13eb2f..5441ad320 100755 --- a/OpenCore-Patcher.command +++ b/OpenCore-Patcher.command @@ -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