parse version

This commit is contained in:
Greg Gauthier 2021-03-09 09:39:30 +00:00
parent 45fca69634
commit b729a7d13f
1 changed files with 2 additions and 1 deletions

View File

@ -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")