homebysix / jss-filevault-reissue

A framework for re-escrowing missing or invalid FileVault keys with Jamf Pro.
Apache License 2.0
186 stars 56 forks source link

Big Sur success condition does not work #40

Closed macbofh closed 3 years ago

macbofh commented 3 years ago

On Big Sur this script responds with "[WARNING] FileVault key was generated, but escrow cannot be confirmed. Please verify that the redirection profile is installed and the Mac is connected to the internet.".

It looks like the conditional check only checks for OS_MINOR >= 13, and this does not work with Big Sur because of the changed version numbering.

A quick and dirty fix is: at the line after:

# Differentiate <=10.12 and >=10.13 success conditions 

change:

if [[ "$OS_MINOR" -ge 13 ]]; then

to

if [ "$OS_MINOR" -ge 13 ] | [ "$OS_MAJOR" -ge 11 ]; then
homebysix commented 3 years ago

Thanks!