Fix grep 3.8 warnings

This commit is contained in:
Vladimir Hodakov 2022-10-06 11:30:53 +04:00
parent 787046cd73
commit fe6e3d0c8a
Signed by: hdkv
GPG Key ID: 673980B6882F82C6

View File

@ -145,7 +145,7 @@ function gitinfo_get_stashes()
######################################################################
function gitinfo_get_untracked()
{
GITINFO_UNTRACKED_COUNT=`LC_ALL=C git status | grep -v "be\ committed\|On\ branch\|nothing\ added\|Untracked\ files\|git\ add\|Your\ branch\|new\ file\|git\ reset\|nothing\ to\ commit\|not\ staged\|git\ checkout\|modified\:" | sed '/^$/d' | wc -l | sed "s/ //g"`
GITINFO_UNTRACKED_COUNT=`LC_ALL=C git status | grep -v "be committed|On branch|nothing added|Untracked files|git add|Your branch|new file|git reset|nothing to commit|not staged|git checkout|modified:" | sed '/^$/d' | wc -l | sed "s/ //g"`
}