From cb119e24373fc760bb7ff264690d8ab140c0faba Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 17 Feb 2019 10:36:45 +0530 Subject: [PATCH] Minor fix to vcs.sh --- plugins/vcs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/vcs.sh b/plugins/vcs.sh index be27696..d53ac19 100644 --- a/plugins/vcs.sh +++ b/plugins/vcs.sh @@ -15,8 +15,8 @@ function wish_vcs_set_colors() { } function wish_vcs_main() { - local op=$(git diff --numstat HEAD 2> /dev/null) - if [[ $op != "" ]]; then + local op=$(git diff --numstat HEAD 2> /dev/null || echo -1) + if [[ $op != "-1" ]]; then local git if [[ $(git status --porcelain 2> /dev/null | grep "^??") != "" ]]; then local git=" $WISH_VCS_GIT_UNTRACKED_SYMBOL"