parse version
This commit is contained in:
parent
45fca69634
commit
b729a7d13f
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user