-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes deprecated brew prune and adds log info
- Loading branch information
Andrés González Muñoz
committed
Feb 1, 2019
1 parent
c5c2fe1
commit c1e3e6f
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
#!/bin/bash | ||
|
||
echo '[INFO] Looking for system updates...' | ||
|
||
# System updates (restarts if required) | ||
sudo softwareupdate --list --all --install --restart | ||
|
||
echo '[INFO] Done wiht system updates.' | ||
|
||
echo '[INFO] Updating brew formulaes...' | ||
|
||
# Brew formulas | ||
brew update # updates formulaes and Homebrew | ||
brew outdated # shows outdated installed formulas after updating them | ||
brew upgrade # Upgrades once formulaes are updated | ||
# removes old versions of a formulae | ||
brew cleanup | ||
brew prune # removes old symlinks | ||
brew upgrade # upgrades once formulaes are updated | ||
brew cleanup # removes old versions of a formulae | ||
brew doctor # checks if everything is OK | ||
|
||
echo '[INFO] You are up to date! 🎉🎉' |