diff --git a/check-versions.go b/check-versions.go index 104266e..dd12bb1 100644 --- a/check-versions.go +++ b/check-versions.go @@ -35,7 +35,8 @@ func execute(cmdstr string) string { func main() { gitver := execute("git --version") - fmt.Println(gitver) + verno := strings.Split(gitver, " ")[2] + fmt.Println(verno) gcnf := execute("git config -l")