mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-13 04:46:40 -05:00
Command -> LookPath
This commit is contained in:
parent
d03584425c
commit
2aedff1218
@ -26,7 +26,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
protoc := "protoc" + EXE
|
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")
|
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)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user