summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-27 15:39:45 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-27 15:39:45 +0200
commit1df852c7f06d077f7bc8277f1ccb69c953f70ce4 (patch)
treea57bde2f96be26712102706920ddbd33cb812cf3
parent10417f08183951d998988d6b9ed86470a34e95c4 (diff)
also use \r for pkg_status
-rwxr-xr-xbin/pkg10
1 files changed, 8 insertions, 2 deletions
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 () {