brew-run: Upgrade for Homebrew 2.x master
authorAlexander Barton <alex@barton.de>
Tue, 5 Feb 2019 18:04:21 +0000 (19:04 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 5 Feb 2019 18:04:21 +0000 (19:04 +0100)
- Don't use "brew upgrade --cleanup",
- Don't call "brew prune".

cmd/brew-run

index 755907bb1f4e6a3b2c40b9121be8d11aed77e831..4a94a5cbe0253807d5c10e959c4b55876006b110 100755 (executable)
@@ -25,12 +25,11 @@ if [ "$outdated" -gt 0 ]; then
        brew outdated --verbose || ax_abort "Failed to list outdated packages!"
        echo
 
-       brew upgrade --ignore-pinned --cleanup || ax_abort "Upgrade failed!"
+       brew upgrade --ignore-pinned || 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."