Run a virtual iPhone on an Apple Silicon Mac.
Swift
Prevent script exit when `nvram boot-args` is missing (#219)
Mustafa Dur78e4c0cb6dc4
diff --git a/scripts/boot_host_preflight.sh b/scripts/boot_host_preflight.shindex f25a7862..aa6b49d8 100644--- a/scripts/boot_host_preflight.sh+++ b/scripts/boot_host_preflight.sh@@ -94,7 +94,7 @@ RESEARCH_GUEST_STATUS="$(fi)"CURRENT_BOOT_ARGS="$(sysctl -n kern.bootargs 2>/dev/null || true)"-NEXT_BOOT_ARGS="$(nvram boot-args 2>/dev/null | sed 's/^boot-args[[:space:]]*//')"+NEXT_BOOT_ARGS="$({ nvram boot-args 2>/dev/null || true; } | sed 's/^boot-args[[:space:]]*//')"ASSESSMENT_STATUS="$(spctl --status 2>/dev/null || true)"print_section "Host"