Index: update_depot_tools.bat |
diff --git a/update_depot_tools.bat b/update_depot_tools.bat |
index 84b0a1f8ba070ce38f7deb2213dc5454b31d486d..1e3ca1009f8b49811871ebfe4ba674cab0344e6c 100644 |
--- a/update_depot_tools.bat |
+++ b/update_depot_tools.bat |
@@ -10,13 +10,13 @@ setlocal |
:: Windows freaks out if a file is overwritten while it's being executed. Copy |
:: this script off to a temporary location and reinvoke from there before |
:: running any svn or git commands. |
-IF %~nx0==update_depot_tools.bat ( |
- COPY /Y %~dp0update_depot_tools.bat %TEMP%\update_depot_tools_tmp.bat >nul |
+IF "%~nx0"=="update_depot_tools.bat" ( |
+ COPY /Y "%~dp0update_depot_tools.bat" "%TEMP%\update_depot_tools_tmp.bat" >nul |
if errorlevel 1 goto :EOF |
- %TEMP%\update_depot_tools_tmp.bat %~dp0 %* |
+ "%TEMP%\update_depot_tools_tmp.bat" "%~dp0" %* |
) |
-set DEPOT_TOOLS_DIR=%1 |
+set DEPOT_TOOLS_DIR=%~1 |
SHIFT |
set GIT_URL=https://chromium.googlesource.com/chromium/tools/depot_tools.git |