parse version

This commit is contained in:
Greg Gauthier 2021-03-09 09:39:30 +00:00
parent 45fca69634
commit b729a7d13f

View File

@ -35,7 +35,8 @@ func execute(cmdstr string) string {
func main() { func main() {
gitver := execute("git --version") gitver := execute("git --version")
fmt.Println(gitver) verno := strings.Split(gitver, " ")[2]
fmt.Println(verno)
gcnf := execute("git config -l") gcnf := execute("git config -l")