From: Alexander Barton Date: Mon, 17 Apr 2017 22:41:44 +0000 (+0200) Subject: brew-run: Clean up after upgrading formulae again X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=1c9f9ba86b05675d1b6743fc343000f968aada13;p=homebrew-alex.git brew-run: Clean up after upgrading formulae again The "brew cleanup" and "brew prune" commands are still useful, even when using "brew upgrade --cleanup", so call them manually again. This partially reverts commit 88e3697d9 ... --- diff --git a/cmd/brew-run b/cmd/brew-run index 7b9ccd6..ededca8 100755 --- a/cmd/brew-run +++ b/cmd/brew-run @@ -27,6 +27,11 @@ if [ $outdated -gt 0 ]; then brew upgrade --cleanup || ax_abort "Upgrade failed!" echo + + ax_msg - "Cleaning up ..." + brew cleanup --prune=2 || ax_abort "\"brew cleanup\" failed!" + brew prune || ax_abort "\"brew prune\" failed!" + echo else ax_msg 0 "Nothing outdated." fi