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