From e970cd5fa3dd944907005d16d09478ed1bebff51 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 24 Jun 2008 13:59:56 +0200 Subject: bin/pkg: Only print 'to $new' unless $new is empty --- bin/pkg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/pkg b/bin/pkg index 4d8c23f..be7ac3b 100755 --- a/bin/pkg +++ b/bin/pkg @@ -325,7 +325,9 @@ pkg_update () { NEW=$(vcs_incoming) if ([ $? = 0 ]) { clear_line - info "Updating $1 to $(echo $NEW | tail -n 1)\n" + info "Updating $1" + [ -n "$NEW" ] && info "to $(echo $NEW | tail -n 1)" + info "\n" vcs_update check_deps "$1" if ([ -r Makefile ]) { -- cgit v1.2.3