From 01bc6c24b64ae7d788092cbc59d7b7d9a7607204 Mon Sep 17 00:00:00 2001 From: 15128022404 <1421485150@qq.com> Date: Fri, 31 Mar 2023 23:17:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/use.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/use.go b/cli/use.go index b1476d2..08166f4 100644 --- a/cli/use.go +++ b/cli/use.go @@ -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", "gradle"), "-").Output(); err == nil { + if output, err := exec.Command(filepath.Join(goroot, "bin", "gradle"), "-v").Output(); err == nil { fmt.Print(string(output)) } return nil