]> arthur.barton.de Git - homebrew-alex.git/blobdiff - cmd/brew-run
brew-run: Update commands for latest Homebrew
[homebrew-alex.git] / cmd / brew-run
index 9232035fa128de0972b64838f45bfbc2e0c64c66..7d499e4f9d07264c37a16884f81479d931f964f0 100755 (executable)
@@ -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