Closed jordan-hamilton closed 6 years ago
I was able to resolve this by adding using head -1
If you have an institutional key it returns two lines. The first line returns the expected "FileVault is On". The second line returns "FileVault master keychain appears to be installed."
Your awk option would work too.
Hi @kc9wwh,
When an institutional recovery key is installed, the variable fvStatus contains:
This causes the first condition on line 335 to evaluate to false.
An alternative would be something like
fvStatus=$( /usr/bin/fdesetup status | awk 'NR == 1' )
on line 170.I can create a PR if you'd like.
Thanks for all you do!
--Jordan