1
0
mirror of https://gitlab.com/ceda_ei/wish synced 2025-10-30 00:50:04 +01:00

Use git if it exists in install script

This commit is contained in:
2019-05-15 13:25:33 +05:30
parent f1b966c5e0
commit 31ec315ffd
2 changed files with 12 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ function wish_vcs_set_colors() {
}
function wish_vcs_main() {
local op=$(git diff --numstat HEAD 2> /dev/null || echo -1)
local op=$(git diff --numstat 2> /dev/null || echo -1)
if [[ $op != "-1" ]]; then
local git
git="$git $WISH_VCS_GIT_SYMBOL "