]> arthur.barton.de Git - homebrew-alex.git/commitdiff
brew run: Don't output newline on no changes
authorAlexander Barton <alex@barton.de>
Sun, 14 Aug 2016 21:09:15 +0000 (23:09 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 14 Aug 2016 21:09:15 +0000 (23:09 +0200)
cmd/brew-run

index 598e35306e97861f42024101de6d15789bb2c08f..170cbd99a0711d94f753e1fd1a23a7ca584b8ff3 100755 (executable)
@@ -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!"