From 696d3ef5262381154d21ed01ede67c536d226ff5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 2 May 2009 11:37:49 +0200 Subject: pkg: pkg_status: No need for tail when checking --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3