Trying to get an EA to report if homebrew is installed so I can scope a GIT update.
#!/bin/bash
## Work Area ####################
which brew
if [ $? = /usr/local/bin/brew ]
then
echo "<result>brew installed</result>"
else
echo "<result>brew not installed</result>"
fi
I only get "brew not installed"
any ideas?
