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:
parent
d03584425c
commit
2aedff1218
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user