mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-02 08:16:43 -05:00
LookPath overwrites protoc
This commit is contained in:
parent
3fc985dd0e
commit
25c461e072
@ -26,9 +26,11 @@ func main() {
|
||||
}
|
||||
protoc := "protoc" + EXE
|
||||
|
||||
if _, err := exec.LookPath(protoc); err != nil {
|
||||
if path, 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)
|
||||
} else {
|
||||
protoc = path
|
||||
}
|
||||
|
||||
protoFilesMap := make(map[string][]string)
|
||||
|
Loading…
Reference in New Issue
Block a user