From 6a12660bc6722fd7b851faac3caa4dad750d98cc Mon Sep 17 00:00:00 2001 From: "szager@google.com" Date: Tue, 6 Nov 2012 20:45:34 +0000 Subject: [PATCH] Fix logic for checking whether git is installed. TBR=maruel@chromium.org Review URL: https://codereview.chromium.org/11377002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@166259 0039d316-1c4b-4281-b951-d872f2087c98 --- bootstrap/win/win_tools.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/win/win_tools.bat b/bootstrap/win/win_tools.bat index a0139bece..4dde1f603 100644 --- a/bootstrap/win/win_tools.bat +++ b/bootstrap/win/win_tools.bat @@ -25,7 +25,7 @@ if "%1" == "force" ( :GIT_CHECK :: If the batch file exists, skip the git check. -if not exist "%WIN_TOOLS_ROOT_DIR%\%GIT_BIN_DIR%" goto :GIT_INSTALL +if exist "%WIN_TOOLS_ROOT_DIR%\%GIT_BIN_DIR%" goto :SVN_CHECK if "%CHROME_HEADLESS%" == "1" goto :SVN_CHECK if "%WIN_TOOLS_FORCE%" == "1" goto :GIT_INSTALL call git --version 2>nul 1>nul