From 3e6eab78df6364f3bd07c327f561ad91cf5da9c7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 6 Jul 2009 21:07:21 +0200 Subject: pkg: pkg_status: Make more sense when used with SILENT=1 --- bin/pkg | 10 +++++++--- 1 file 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 + } } } -- cgit v1.2.3