From 1df852c7f06d077f7bc8277f1ccb69c953f70ce4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 27 May 2008 15:39:45 +0200 Subject: also use \r for pkg_status --- bin/pkg | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 1820f39..cd9ae6d 100755 --- a/bin/pkg +++ b/bin/pkg @@ -140,9 +140,15 @@ pkg_list_available () { pkg_status () { cd $PDIR/$1 - info "Checking $1 status...\n" + info "Checking $1 status..." check_deps $1 - $VCS_CMD $VCS_STATUS + STATUS=$($VCS_CMD $VCS_STATUS) + if ([ -n "$STATUS" ]) { + info "\rLocally modified in $1:\n" + echo "$STATUS" + } else { + info "\r \r" + } } pkg_status_wrapper () { -- cgit v1.2.3