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?
#!/bin/bash
#xclient is a unix executable
if [ ! -f /usr/local/bin/xClient ]; then
echo "<result>Not Installed</result>"
#xmetering is a unix executable
if [ ! -f /usr/local/bin/xMetering ]; then
echo "<result>Not Installed</result>"
#snowclient.conf is a config file
if [ ! -f /etc/snowclient.conf ];then
echo "<result>Not Installed</result>"
#Snow software is a directory
if [ ! -d /Library/Application Support/Snow Software ]; then
echo "<result>Not Installed</result>"
else
echo "<result>Installed</result>"
fi
fi
fi
fi