1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-14 06:06:39 -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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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