File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
apps/portal/src/app/api/download-agent/scripts Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,16 @@ echo.
5454REM Choose a writable directory (primary first, then fallback)
5555echo Choosing destination directory...
5656echo Trying primary: %PRIMARY_DIR%
57- if not exist "%PRIMARY_DIR%" (
58- mkdir "%PRIMARY_DIR%" >nul 2>&1
57+ if not exist "%PRIMARY_DIR%\ " (
58+ md "%PRIMARY_DIR%" 2 >nul || echo [WARN] mkdir failed for "%PRIMARY_DIR%"
5959)
60- if exist "%PRIMARY_DIR%" set "CHOSEN_DIR=%PRIMARY_DIR%"
60+ if exist "%PRIMARY_DIR%\ " set "CHOSEN_DIR=%PRIMARY_DIR%"
6161if not defined CHOSEN_DIR (
6262 echo Trying fallback: %FALLBACK_DIR%
63- if not exist "%FALLBACK_DIR%" (
64- mkdir "%FALLBACK_DIR%" >nul 2>&1
63+ if not exist "%FALLBACK_DIR%\ " (
64+ md "%FALLBACK_DIR%" 2 >nul || echo [WARN] mkdir failed for "%FALLBACK_DIR%"
6565 )
66- if exist "%FALLBACK_DIR%" set "CHOSEN_DIR=%FALLBACK_DIR%"
66+ if exist "%FALLBACK_DIR%\ " set "CHOSEN_DIR=%FALLBACK_DIR%"
6767)
6868
6969if not defined CHOSEN_DIR (
You can’t perform that action at this time.
0 commit comments