From: Alexander Barton Date: Tue, 21 Aug 2018 08:16:37 +0000 (+0200) Subject: brew-run: Fix test for outdated packages X-Git-Url: https://arthur.barton.de/gitweb/?p=homebrew-alex.git;a=commitdiff_plain;h=975261b7d3795bb91e9ddb992caa7824812325da;hp=775b2cc93e04931d7209c40cbc3581655dbf7109 brew-run: Fix test for outdated packages Ignore "pinned" packages. --- diff --git a/cmd/brew-run b/cmd/brew-run index c1b6af3..12df604 100755 --- a/cmd/brew-run +++ b/cmd/brew-run @@ -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!"