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