I am trying to create a EA to report the status of the the following key in the Clients.plist. This is what I have so far but it is not reporting properly. Any help is appreciated. TY
#!/bin/bash
ABSlocationServices=$(sudo defaults read /var/db/locationd/clients.plist 2C4E4FD5-F029-XXXX-XXXX-XXXXXXXXXXXX:icom.absolute.ctesservice.ase:Authorized)
if [[ "$ABSlocationServices" == "True" ]]; then
echo "<result>Enabled</result>"
else
echo "<result>Disabled</result>"
fi
