jamf / Jamf-Environment-Test

Admin Utility for testing an environments network for success with Apple Devices
MIT License
100 stars 13 forks source link

JET script improvement for FileVault Status check #9

Closed cipineda closed 1 year ago

cipineda commented 1 year ago

First of all thanks for this script, it works very good. I just have an observation, my machine reported not having FileVault enabled, which it does. Upon checking the code: /usr/bin/fdesetup status | /usr/bin/awk '{print $3}' | /usr/bin/tr -d . It returned:
On keychain

Which are two rows and when compared on line 940 against == "On" it fails.

If you add the 'head' command it should fix it: /usr/bin/fdesetup status | /usr/bin/awk '{print $3}' | head -1 | /usr/bin/tr -d . Result: On

daniel-maclaughlin commented 1 year ago

will be added to 1.6.1