Skip to content

Commit

Permalink
Removes deprecated brew prune and adds log info
Browse files Browse the repository at this point in the history
  • 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.
14 changes: 10 additions & 4 deletions scripts/update.sh
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! 🎉🎉'

0 comments on commit c1e3e6f

Please sign in to comment.