Skip to content

Commit 6541f87

Browse files
committed
Update gendb.bat
1 parent aff388d commit 6541f87

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

generate/gendb.bat

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ if not exist "%BIN_DIR%\initdb.exe" (
6363

6464
:: Чистый старт: удалить старые data/temp и создать заново
6565
if exist "%TMP_DIR%" rd /s /q "%TMP_DIR%"
66-
if exist "%DATA_DIR%" rd /s /q "%DATA_DIR%"
66+
:: if exist "%DATA_DIR%" rd /s /q "%DATA_DIR%"
6767

6868
mkdir "%TMP_DIR%" 2>nul
69-
mkdir "%DATA_DIR%" 2>nul
69+
:: mkdir "%DATA_DIR%" 2>nul
7070

71-
if not exist "%DATA_DIR%" (
72-
echo [%date% %time%] ❌ ERROR: Failed to create data dir: "%DATA_DIR%"
73-
endlocal & exit /b 1
74-
)
71+
:: if not exist "%DATA_DIR%" (
72+
:: echo [%date% %time%] ❌ ERROR: Failed to create data dir: "%DATA_DIR%"
73+
:: endlocal & exit /b 1
74+
:: )
7575

7676
:: Переменные окружения для initdb/psql
7777
set "PGDATA=%DATA_DIR%"

0 commit comments

Comments
 (0)