Last active
May 5, 2016 06:34
-
-
Save skatsuta/992cf851d95dbd180cb6 to your computer and use it in GitHub Desktop.
Update all Homebrew and Homebrew Cask packages in one command.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
set -x | |
brew update | |
brew upgrade --all | |
set +x | |
brew cask update | |
for c in `brew cask list`; do | |
! brew cask info $c | grep -qF "Not installed" || brew cask install --force $c | |
done | |
set -x | |
brew cleanup | |
brew cask cleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment