summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-02 11:37:49 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-02 11:37:49 +0200
commit696d3ef5262381154d21ed01ede67c536d226ff5 (patch)
tree834094d689fdc39fe7bcad9fd5215c3fb4074932 /bin
parent6c1454a29852874cfde380fd0ade74472c89619a (diff)
pkg: pkg_status: No need for tail when checking
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 17eb300..2c43c5c 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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