From: Alexander Barton Date: Sun, 14 Aug 2016 21:09:15 +0000 (+0200) Subject: brew run: Don't output newline on no changes X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=homebrew-alex.git;a=commitdiff_plain;h=97eb236ab4bdfa4ce1bd28a71d13443b8e4200d1 brew run: Don't output newline on no changes --- diff --git a/cmd/brew-run b/cmd/brew-run index 598e353..170cbd9 100755 --- a/cmd/brew-run +++ b/cmd/brew-run @@ -17,12 +17,13 @@ unset dir ax_common ax_common_sourced ax_msg - "Updating Homebrew installation ..." brew update || ax_abort "Update failed!" -echo 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!" + echo brew upgrade --all || ax_abort "Upgrade failed!" brew linkapps --local || ax_abort "Linking of applications failed!"