Thank you for sharing this.
When i deployed it out, it returns with just )
Apple Studio Display Firmware:)
Thank you for sharing this.
When i deployed it out, it returns with just )
Apple Studio Display Firmware:)
Spelling will get you every time!
#!/bin/bash
result="<result>NOT Found</result>"
if [[ $(system_profiler SPDisplaysDataType | grep -i "Studio Display") != "" ]]
then
dispFW1=$(system_profiler SPDisplaysDataType | grep -i "Display Firmware Version:")
dispFW2=${dispFW1#*: Version }
dispFW3=${dispFW2%)*}
result="<result>$dispFW3)</result>"
fi
echo "$result"
On a side note, if someone has more than 1 plugged in, it will return:
15.5 (Build 19F80) Display Firmware Version: Version 15.5 (Build 19F80)
I'll try to get to checking for the number of lines returned by the first grep, but if anyone is good with bash, feel free!
Thanks for putting this together. Have you had to update the firmware using Jamf or any other automated way? I don't see that the softwareupdate binary pulls it.
Thanks again for making this.
The update worked
Thanks for putting this together. Have you had to update the firmware using Jamf or any other automated way? I don't see that the softwareupdate binary pulls it.
I want to bump up this question. I'm having the same issue, and it recently caused a problem with mic and speaker function in Zoom & FaceTime.