This commit is contained in:
15128022404 2023-03-31 23:13:39 +08:00
parent 12cb0167d0
commit fc40262d50

View File

@ -25,7 +25,7 @@ func use(ctx *cli.Context) (err error) {
if err = mkSymlink(targetV, goroot); err != nil {
return cli.Exit(errstring(err), 1)
}
if output, err := exec.Command(filepath.Join(goroot, "bin", "java"), "--version").Output(); err == nil {
if output, err := exec.Command(filepath.Join(goroot, "bin", "gradle"), "-").Output(); err == nil {
fmt.Print(string(output))
}
return nil