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
+1 -1
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 "