1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-13 03:35:24 -05:00

Command -> LookPath

This commit is contained in:
RPRX
2020-10-20 03:07:10 +00:00
committed by GitHub
parent d03584425c
commit 2aedff1218

View File

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