Minor fix to vcs.sh

This commit is contained in:
Ceda EI 2019-02-17 10:36:45 +05:30
parent f1646abba6
commit cb119e2437
1 changed files with 2 additions and 2 deletions

View File

@ -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"