From 2aedff121862bf23a417fc50a3872957e8a621f6 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Tue, 20 Oct 2020 03:07:10 +0000 Subject: [PATCH] Command -> LookPath --- infra/vprotogen/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/vprotogen/main.go b/infra/vprotogen/main.go index 9c3953d93..af4dff259 100644 --- a/infra/vprotogen/main.go +++ b/infra/vprotogen/main.go @@ -26,7 +26,7 @@ func main() { } protoc := "protoc" + EXE - if err := exec.Command(protoc).Run(); err != nil { + if _, err := exec.LookPath(protoc); err != nil { fmt.Println("Make sure that you have `" + protoc + "` in your system or current path, please visit https://github.com/protocolbuffers/protobuf/releases") os.Exit(1) }