summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ }
}
}