From 4269ecd10a0afba279e30df44f4a8bf556bd2de4 Mon Sep 17 00:00:00 2001 From: bWFuanVzYWth Date: Fri, 7 Apr 2023 11:51:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E5=AF=BC=E8=87=B4=E7=9A=84=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E9=9D=9E=E5=B8=B8=E5=82=BB=E9=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 双击更新蓝图仓库.bat | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/双击更新蓝图仓库.bat b/双击更新蓝图仓库.bat index ba9013a..154f386 100644 --- a/双击更新蓝图仓库.bat +++ b/双击更新蓝图仓库.bat @@ -12,10 +12,10 @@ echo INF: %date% %time% Start>>%LOG_PATH% ::find git if exist ".\MinGit\cmd\git.exe" ( set GIT_PATH=.\MinGit\cmd\git.exe -echo INF: %date% %time% GIT_PATH=MinGit>>%LOG_PATH% +echo INF: %date% %time% GIT_PATH=.\MinGit\cmd\git.exe>>%LOG_PATH% ) else if exist "C:\Program Files\Git" ( set GIT_PATH=git -echo INF: %date% %time% GIT_PATH=Git>>%LOG_PATH% +echo INF: %date% %time% GIT_PATH=git>>%LOG_PATH% ) else ( echo 警告:无法找到Git或MinGit。如果更新能正常进行请忽略 | Warning: Could not find Git or MinGit. Please ignore if the update works normally echo WAR: %date% %time% Git/MinGit no found>>%LOG_PATH% @@ -32,10 +32,11 @@ echo INF: %date% %time% git pull start>>%LOG_PATH% git config core.longpaths true set GIT_SSL_NO_VERIFY=true %GIT_PATH% pull origin main -set git_pull_errorlevel = %errorlevel% -echo INF: %date% %time% git pull exit: %git_pull_errorlevel%>>%LOG_PATH% -if %git_pull_errorlevel% NEQ 0( -echo 错误:更新失败,这通常是网络问题。请重试,或者开加速器再更新。详见README.md +if %errorlevel% NEQ 0 ( +echo ERR: %date% %time% git pull error>>%LOG_PATH% +echo 错误:更新失败,这通常是网络问题。请重试,或者开加速器再更新。详见"README.md" +) else ( +echo INF: %date% %time% git pull successed>>%LOG_PATH% ) ::end