diff --git a/tools/run_tests/pre_build_c.bat b/tools/run_tests/pre_build_c.bat index ac8a375ad7d88676012c563fac93b3217d865c57..f0449f3c424af08e7a2c01ed2f215fc4033db451 100644 --- a/tools/run_tests/pre_build_c.bat +++ b/tools/run_tests/pre_build_c.bat @@ -8,7 +8,7 @@ cd /d %~dp0\..\.. @rem Location of nuget.exe set NUGET=C:\nuget\nuget.exe -if exists %NUGET% ( +if exist %NUGET% ( %NUGET% restore vsprojects/grpc.sln || goto :error ) diff --git a/tools/run_tests/pre_build_csharp.bat b/tools/run_tests/pre_build_csharp.bat index f5890c2743176d6aecd90d8cc21e7f5aed114e4e..853a8f4325542c6529013912556c9ed22ae5d1bd 100644 --- a/tools/run_tests/pre_build_csharp.bat +++ b/tools/run_tests/pre_build_csharp.bat @@ -8,7 +8,7 @@ cd /d %~dp0\..\.. @rem Location of nuget.exe set NUGET=C:\nuget\nuget.exe -if exists %NUGET% ( +if exist %NUGET% ( %NUGET% restore vsprojects/grpc_csharp_ext.sln || goto :error %NUGET% restore src/csharp/Grpc.sln || goto :error )