I'm working on tracking our Google Chrome extensions and the first one that's been turned in to track is POSTman. Normally for our tracking I write a quick extension attribute to read a plist or run a command to get a version but with these Chrome extensions (reading a .json file) I'm scratching my head.
If I run a simple
cat /Library/Application Support/Google/Chrome/External Extensions/chrome/manifest.json | sed -n 3p
from Terminal, I get an output I can work with :```
"version":"0.8.0.4",
If I try to expand that to an extension attribute script it breaks using:
!/bin/sh
PST=cat /Library/Application Support/Google/Chrome/External Extensions/chrome/manifest.json | sed -n 3p
echo "<result>$PST</result>"
```
Any help/thoughts would be appreciated.
