]> arthur.barton.de Git - homebrew-alex.git/commitdiff
brew-run: Fix test for outdated packages
authorAlexander Barton <alex@barton.de>
Tue, 21 Aug 2018 08:16:37 +0000 (10:16 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 21 Aug 2018 08:16:52 +0000 (10:16 +0200)
Ignore "pinned" packages.

cmd/brew-run

index c1b6af3a627c341532f6b7c4a9c7a9ac14011341..12df604fea0a5f114395f051ae0de5498b021452 100755 (executable)
@@ -18,8 +18,8 @@ unset dir ax_common ax_common_sourced
 ax_msg - "Updating Homebrew installation ..."
 brew update || ax_abort "Update failed!"
 
-outdated=$( brew outdated --quiet | wc -l | tr -d '\t ' )
-if [ $outdated -gt 0 ]; then
+outdated=$( brew outdated --verbose | grep -F -cv "pinned at" )
+if [ "$outdated" -gt 0 ]; then
        echo
        ax_msg - "$outdated formula outdated:"
        brew outdated --verbose || ax_abort "Failed to list outdated packages!"