FileVault2_Scripts icon indicating copy to clipboard operation
FileVault2_Scripts copied to clipboard

Quick Fix for Big Sur

Open TravellingTechGuy opened this issue 4 years ago • 1 comments

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 ")

TravellingTechGuy avatar Nov 18 '20 12:11 TravellingTechGuy

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.

cstout1 avatar Jan 21 '21 17:01 cstout1