I'm having an issue (new to Jamf, Mac and bash) in getting an extension attribute to populate from a script that searches for a file that lives in a properties file under the user folder. I have tried a couple ways to get the info from the file from a script, but when I get to putting the script into the extension attribute it seems to fall apart. Currently I have the following
#!/bin/sh
bverpath=$(find . -type f -name "SiliconConnectorBynderVer.properties")
source "$bverpath"
echo $VERSION
If i run this directly on the PC in terminal I get version returned. $bverpath is:
./library/preferences/siliconconnector/siliconconnectorbynderver.properties
but that is under /users/*user. Seems like most templates are looking under /applications or /library, not /users, so I'm stuck.
Thanks for any assistance.
