I am trying to create an extension attribute that will report weather the proxy plugin "hola" has been installed on google chrome. The hola plugin installs files into the current logged in user's profile so I thought maybe some scripting that looked for one of the files existing or not would be a way to detect which students installed this plugin. I found another post here on JAMF nation that had some "if file exhist" work in it but I can't seem to adapt it for my needs. Here is my current script. Any thought on where I went wrong or a better approach? Thanks in advance and keep in mind I have VERY simple scripting skills.
Data type = string
Input type = script
Script:
#!/usr/bin/env ruby
result = File.exist?("result = File.exist?("/Users/'3$'/Library/ApplicationSupport/Google/Chrome/Default/Extensions/gkojfkhlekighikafcpjkiklfbnlmeio/1.2.449_0/js/cs_hola.js ") ? "yes" : "no"
puts "<result>#{result}</result>"