Using our command_exists func to check for brew

Fixes #341.
This commit is contained in:
Strahinja Val Markovic 2013-05-26 17:38:47 -07:00
parent 258f3dfd73
commit ed691d30c6

View File

@ -15,7 +15,7 @@ function cmake_install {
} }
function homebrew_cmake_install { function homebrew_cmake_install {
if [[ `which brew &> /dev/null` ]]; then if command_exists brew; then
brew install cmake brew install cmake
else else
echo "Homebrew was not found installed in your system." echo "Homebrew was not found installed in your system."