Prevent script exit when nvram boot-args is missing (#219)

This commit is contained in:
Mustafa Dur
2026-03-15 19:40:17 +03:00
committed by GitHub
parent 30fcc05ca5
commit 78e4c0cb6d

View File

@@ -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"