mirror of
https://github.com/Lakr233/vphone-cli.git
synced 2026-04-05 04:59:05 +08:00
Prevent script exit when nvram boot-args is missing (#219)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user