Skip to content

Commit

Permalink
Add check for Filevault enabled at Setup Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
drtaru committed Sep 13, 2023
1 parent d3dd291 commit 2571f02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Setup-Your-Mac-via-Dialog.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,8 @@ function validatePolicyResult() {
dialogUpdateSetupYourMac "listitem: index: $i, status: wait, statustext: Checking …"
updateScriptLog "SETUP YOUR MAC DIALOG: Validate Policy Result: Pausing for 5 seconds for FileVault … "
sleep 5 # Arbitrary value; tuning needed
if [[ -f /Library/Preferences/com.apple.fdesetup.plist ]]; then
fileVaultCheck=$( fdesetup isactive )
if [[ -f /Library/Preferences/com.apple.fdesetup.plist ]] || [[ "$fileVaultCheck" == "true" ]]; then
fileVaultStatus=$( fdesetup status -extended -verbose 2>&1 )
case ${fileVaultStatus} in
*"FileVault is On."* )
Expand Down

0 comments on commit 2571f02

Please sign in to comment.