summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-06 21:07:21 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-06 21:07:21 +0200
commit3e6eab78df6364f3bd07c327f561ad91cf5da9c7 (patch)
tree9311cd669ea4811a4bdd2f126dcdf487b710ecbb /bin
parent2f2756ab422102fb686a2d7fc1e4f65e82ec7f01 (diff)
pkg: pkg_status: Make more sense when used with SILENT=1
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/pkg b/bin/pkg
index b40ede0..42cca68 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -729,9 +729,13 @@ function pkg_status {
check_installed $1
vcs_status=$(PAGER='' vcs_status $1)
if [[ -n $vcs_status && $vcs_status != *'nothing to commit (working directory clean)' ]] {
- clear_line
- info "$1:\n"
- echo $vcs_status
+ if ((SILENT)) {
+ echo $1
+ } else {
+ clear_line
+ info "$1:\n"
+ echo $vcs_status
+ }
}
}