#!/bin/bash for task in 'update' 'upgrade' 'cleanup' do echo "Executing brew $task" /usr/local/bin/brew $task done # brew install wget