FileVault2_Scripts
FileVault2_Scripts copied to clipboard
Quick Fix for Big Sur
Line 111 add: OSBigSur=/usr/bin/sw_vers -productVersion | awk -F. {'print $1'}
Line 177 add:
elif [[ $OSBigSur = 11 ]]; then
result=$(expect -c "
log_user 0
spawn fdesetup changerecovery -personal
expect "Enter the user name:"
send {${userName}}
send \r
expect "Enter a password for '/', or the recovery key:"
send {${userPass}}
send \r
log_user 1
expect eof
")
Line 111 needs the back-tick character `
added to the beginning and end of the variable contents:
OSBigSur=`/usr/bin/sw_vers -productVersion | awk -F. {'print $1'}`
This was likely just GitHub's reformatting of the previous post.