[build] fix nuget linux in build_protoc_for_host() (#15472)

### Description
fix nuget linux in build_protoc_for_host()
This commit is contained in:
Yulong Wang 2023-04-12 13:46:32 -07:00 committed by GitHub
parent 8cd5f3ad9c
commit 041a0e2747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2183,7 +2183,7 @@ def build_protoc_for_host(cmake_path, source_dir, build_dir, args):
return None
run_subprocess(
[
"nuget.exe",
"nuget.exe" if is_windows() else "nuget",
"restore",
os.path.join(source_dir, "packages.config"),
"-ConfigFile",