diff --git a/update_depot_tools.bat b/update_depot_tools.bat index 4311f20eec..4df4d44d80 100644 --- a/update_depot_tools.bat +++ b/update_depot_tools.bat @@ -13,7 +13,9 @@ setlocal 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" %* + REM Use call/exit to avoid leaving an orphaned window title. + call "%TEMP%\update_depot_tools_tmp.bat" "%~dp0" %* + exit /b ) set DEPOT_TOOLS_DIR=%~1