diff --git a/utils/download.bat b/utils/download.bat index 774de99..92c900c 100644 --- a/utils/download.bat +++ b/utils/download.bat @@ -26,8 +26,8 @@ if exist "%outfile%" ( rem Utility preset. call which which >NUL 2>&1 || set "PATH=%root%;%PATH%" -rem Creating intermediate dirs. -for %%i in ("%outfile%") do if not exist "%%~pi" md "%%~pi" +rem Ensure the %outfile% dir exists. +for %%i in ("%outfile%") do if not exist "%%~dpi" md "%%~dpi" rem Trying to download with: