mirror of https://gitlab.com/ceda_ei/wish
Minor fix to vcs.sh
This commit is contained in:
parent
f1646abba6
commit
cb119e2437
|
@ -15,8 +15,8 @@ function wish_vcs_set_colors() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function wish_vcs_main() {
|
function wish_vcs_main() {
|
||||||
local op=$(git diff --numstat HEAD 2> /dev/null)
|
local op=$(git diff --numstat HEAD 2> /dev/null || echo -1)
|
||||||
if [[ $op != "" ]]; then
|
if [[ $op != "-1" ]]; then
|
||||||
local git
|
local git
|
||||||
if [[ $(git status --porcelain 2> /dev/null | grep "^??") != "" ]]; then
|
if [[ $(git status --porcelain 2> /dev/null | grep "^??") != "" ]]; then
|
||||||
local git=" $WISH_VCS_GIT_UNTRACKED_SYMBOL"
|
local git=" $WISH_VCS_GIT_UNTRACKED_SYMBOL"
|
||||||
|
|
Loading…
Reference in New Issue