diff --git a/install.sh b/install.sh index f77408ab..93ebc758 100755 --- a/install.sh +++ b/install.sh @@ -15,7 +15,7 @@ function cmake_install { } function homebrew_cmake_install { - if [[ `which brew &> /dev/null` ]]; then + if command_exists brew; then brew install cmake else echo "Homebrew was not found installed in your system."