diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-02 11:37:49 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-02 11:37:49 +0200 |
commit | 696d3ef5262381154d21ed01ede67c536d226ff5 (patch) | |
tree | 834094d689fdc39fe7bcad9fd5215c3fb4074932 | |
parent | 6c1454a29852874cfde380fd0ade74472c89619a (diff) |
pkg: pkg_status: No need for tail when checking
-rwxr-xr-x | bin/pkg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -751,7 +751,7 @@ function pkg_status { typeset vcs_status check_installed $1 vcs_status=$(PAGER='' vcs_status $1) - if [[ -n $vcs_status && $(echo $vcs_status | tail -n 1) != 'nothing to commit (working directory clean)' ]] { + if [[ -n $vcs_status && $vcs_status != *'nothing to commit (working directory clean)' ]] { clear_line info "$1:\n" echo $vcs_status |