From 18209cbb99caf94a1c350cb40160bf81490c2fb9 Mon Sep 17 00:00:00 2001 From: "iannucci@chromium.org" Date: Wed, 30 Mar 2016 18:03:52 +0000 Subject: [PATCH] Fix extra space on 32bit platforms R=seanmccullough@google.com, seanmccullough@chromium.org BUG=599145 Review URL: https://codereview.chromium.org/1846633003 . git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299571 0039d316-1c4b-4281-b951-d872f2087c98 --- bootstrap/win/win_tools.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/win/win_tools.bat b/bootstrap/win/win_tools.bat index 48b038d65..f6f8df54b 100644 --- a/bootstrap/win/win_tools.bat +++ b/bootstrap/win/win_tools.bat @@ -69,7 +69,8 @@ if %VERMAJOR% equ 5 if %VERMINOR% lss 2 set XP_SUFFIX=-xp set FIND_EXE=%SYSTEMROOT%\System32\find.exe :: Check to see if we're on a 32 or 64 bit system -reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | %FIND_EXE% /i "x86" > NUL && set OS_BITS=32 || set OS_BITS=64 +:: (parens) are necessary, otherwise batch puts an extra space after 32. +reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | %FIND_EXE% /i "x86" > NUL && (set OS_BITS=32) || (set OS_BITS=64) if not exist "%WIN_TOOLS_ROOT_DIR%\.git_bleeding_edge" goto :GIT_OLD_FLOW set GIT_PORTABLE_FLOW=1