| 12345678910111213141516171819202122232425 | #!/bin/bash# Stop processing on any error.set -efunction install_if_not_installed() {  declare -r formula="$1"  if [[ $(brew list ${formula} &>/dev/null; echo $?) -ne 0 ]]; then    brew install ${formula}  else    echo "$0 - ${formula} is already installed."  fi}# Manually trigger an update prior to installing packages to avoid Ruby# version related errors as per [1].## [1]: https://github.com/travis-ci/travis-ci/issues/8552brew updateinstall_if_not_installed cmakeinstall_if_not_installed gloginstall_if_not_installed gflagsinstall_if_not_installed eigeninstall_if_not_installed suite-sparse
 |