Merge pull request #336 from Rando717/cfz-updater

Hotfix cfz_update_utility.bat
This commit is contained in:
patientx 2025-10-10 12:23:26 +03:00 committed by GitHub
commit 55680eba51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,12 +297,17 @@ for /f "delims=" %%R in ('git rev-parse @{u}') do set REMOTE=%%R
if NOT "%LOCAL%"=="%REMOTE%" (
echo.
echo [INFO] Update available. New commits:
git --no-pager log --oneline %LOCAL%..%REMOTE%
git --no-pager log --oneline %LOCAL%..%REMOTE% >> "%LOG_FILE%" 2>&1
git --no-pager log --oneline %LOCAL%..%REMOTE% > temp_log_output.txt 2>&1
type temp_log_output.txt
type temp_log_output.txt >> "%LOG_FILE%"
del temp_log_output.txt
call :log New commits between %LOCAL% and %REMOTE%
echo.
echo [INFO] Pulling updates...
git --no-pager pull >> "%LOG_FILE%" 2>&1
git --no-pager pull > temp_pull_output.txt 2>&1
type temp_pull_output.txt
type temp_pull_output.txt >> "%LOG_FILE%"
del temp_pull_output.txt
call :log Pulled updates
echo.
echo [DONE] Update complete.