Update updator.bat
This commit is contained in:
@@ -11,6 +11,8 @@ set "MAIN_REPO_DIR=%BASE_DIR%"
|
||||
set "SCRIPTS_TEMP_DIR=%BASE_DIR%\temp_scripts"
|
||||
set "SOUNDS_DIR=%BASE_DIR%\sounds"
|
||||
set "REPO_SUBFOLDER=wav"
|
||||
set "SCRIPTS_REPO_URL=http://nathantech.net:3000/CosmicRage/VIPMudCosmicRageScripts.git"
|
||||
set "SOUNDS_REPO_URL=https://nathantech.net:3000/CosmicRage/CosmicRageSounds.git"
|
||||
|
||||
:: --------- Setup Log ---------
|
||||
echo [%DATE% %TIME%] Starting update process... > "%LOG_FILE%"
|
||||
@@ -56,7 +58,7 @@ if errorlevel 1 (
|
||||
:: --------- Replace Files in the Main Directory (Safe Copy) ---------
|
||||
echo [%DATE% %TIME%] Preparing to copy files... >> "%LOG_FILE%"
|
||||
set "SRC_DIR=%~dp0temp_scripts"
|
||||
set "DEST_DIR=%~dp0"
|
||||
set "DEST_DIR=%~dp0."
|
||||
echo SRC_DIR: [%SRC_DIR%] >> "%LOG_FILE%"
|
||||
echo DEST_DIR: [%DEST_DIR%] >> "%LOG_FILE%"
|
||||
|
||||
@@ -69,7 +71,7 @@ if not exist "%DEST_DIR%" (
|
||||
exit /b
|
||||
)
|
||||
|
||||
robocopy "%SRC_DIR%" "%DEST_DIR%" /E /COPY:DAT /XO >> "%LOG_FILE%" 2>&1
|
||||
robocopy "%SRC_DIR%" %~dp0 /E /COPY:DAT /XO >> "%LOG_FILE%" 2>&1
|
||||
if errorlevel 8 (
|
||||
echo [%DATE% %TIME%] ERROR: Robocopy failed. Exit code: %errorlevel% >> "%LOG_FILE%"
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user