diff --git a/tools/run_tests/pre_build_c.bat b/tools/run_tests/pre_build_c.bat index ac8a375ad7d..f0449f3c424 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 f5890c27431..853a8f43255 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 )