From: Alexander Barton Date: Mon, 3 Oct 2016 20:41:42 +0000 (+0200) Subject: brew-run: Update commands for latest Homebrew X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=homebrew-alex.git;a=commitdiff_plain;h=88e3697d9;hp=8c9533d7773d2a6f54e56338b5fa2f2ad09222d2 brew-run: Update commands for latest Homebrew Use "outdated --verbose" and "upgrade --cleanup", "cleanup" and "prune" isn't necessary any more. And show a header before calling "linkups". --- diff --git a/cmd/brew-run b/cmd/brew-run index 9232035..7d499e4 100755 --- a/cmd/brew-run +++ b/cmd/brew-run @@ -22,15 +22,14 @@ outdated=$( brew outdated --quiet | wc -l | tr -d '\t ' ) if [ $outdated -gt 0 ]; then echo ax_msg - "$outdated formula outdated:" - brew outdated || ax_abort "Failed to list outdated packages!" - + brew outdated --verbose || ax_abort "Failed to list outdated packages!" echo - brew upgrade --all || ax_abort "Upgrade failed!" - brew linkapps --local || ax_abort "Linking of applications failed!" + brew upgrade --cleanup || ax_abort "Upgrade failed!" echo - brew cleanup || ax_abort "\"brew cleanup\" failed!" - brew prune || ax_abort "\"brew prune\" failed!" + + ax_msg - "Linking applications ..." + brew linkapps --local || ax_abort "Linking of applications failed!" else ax_msg 0 "Nothing outdated." fi