I'm trying to use an extension attribute to tell if a program is installed by looking at a few folders to see if the folder/files exist. It's reporting if it's Not Installed, but it's not telling me if it's installed. Am i doing something wrong?
1#!/bin/bash23 #xclient is a unix executable4 if [ ! -f /usr/local/bin/xClient ]; then5 echo "<result>Not Installed</result>"67#xmetering is a unix executable8 if [ ! -f /usr/local/bin/xMetering ]; then9 echo "<result>Not Installed</result>"1011#snowclient.conf is a config file12 if [ ! -f /etc/snowclient.conf ];then13 echo "<result>Not Installed</result>"1415#Snow software is a directory16 if [ ! -d /Library/Application Support/Snow Software ]; then17 echo "<result>Not Installed</result>"1819 else20 echo "<result>Installed</result>"2122 fi23 fi24 fi25 fi