#!/bin/bash if command -v brew; then brew update brew upgrade brew cleanup else 2>&1 echo "homebrew wasn't found" fi