diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-06 21:07:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-06 21:07:21 +0200 |
commit | 3e6eab78df6364f3bd07c327f561ad91cf5da9c7 (patch) | |
tree | 9311cd669ea4811a4bdd2f126dcdf487b710ecbb /bin | |
parent | 2f2756ab422102fb686a2d7fc1e4f65e82ec7f01 (diff) |
pkg: pkg_status: Make more sense when used with SILENT=1
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 + } } } |