From 6438cfcaf2441c402cef8e53e8ca60429e91282e Mon Sep 17 00:00:00 2001
From: Jan Tattermusch <jtattermusch@google.com>
Date: Wed, 7 Oct 2015 19:41:23 -0700
Subject: [PATCH] fix if exist syntax in .bat files

---
 tools/run_tests/pre_build_c.bat      | 2 +-
 tools/run_tests/pre_build_csharp.bat | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/run_tests/pre_build_c.bat b/tools/run_tests/pre_build_c.bat
index ac8a375ad7..f0449f3c42 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 f5890c2743..853a8f4325 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
 )
-- 
GitLab