I am trying to create an extension attribute that detects the presence of an installer package cached in the Waiting Room. I can run the script manually in terminal and get a true or false result. When I place the script in the extension attribute, I get no result returned. The script:
if [ -e /Library/Application Support/JAMF/Waiting Room/*.pkg.cache.xml ]
then
echo "true"
else
echo "false"
fi
What am I doing wrong?