Update cfz_update_utility.bat

a workaround for bash
to print pull info inside console when logging git pull, 
using temp store file to avoid power shell approach
This commit is contained in:
Rando717 2025-10-10 04:21:13 +02:00 committed by GitHub
parent aa6afacc01
commit 3f0fa451f7
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.