mirror of
https://github.com/DSPBluePrints/FactoryBluePrints.git
synced 2025-12-09 15:53:28 +08:00
修复了一个空格导致的语法错误,非常傻逼
This commit is contained in:
13
双击更新蓝图仓库.bat
13
双击更新蓝图仓库.bat
@@ -12,10 +12,10 @@ echo INF: %date% %time% Start>>%LOG_PATH%
|
|||||||
::find git
|
::find git
|
||||||
if exist ".\MinGit\cmd\git.exe" (
|
if exist ".\MinGit\cmd\git.exe" (
|
||||||
set GIT_PATH=.\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" (
|
) else if exist "C:\Program Files\Git" (
|
||||||
set GIT_PATH=git
|
set GIT_PATH=git
|
||||||
echo INF: %date% %time% GIT_PATH=Git>>%LOG_PATH%
|
echo INF: %date% %time% GIT_PATH=git>>%LOG_PATH%
|
||||||
) else (
|
) else (
|
||||||
echo 警告:无法找到Git或MinGit。如果更新能正常进行请忽略 | Warning: Could not find Git or MinGit. Please ignore if the update works normally
|
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%
|
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
|
git config core.longpaths true
|
||||||
set GIT_SSL_NO_VERIFY=true
|
set GIT_SSL_NO_VERIFY=true
|
||||||
%GIT_PATH% pull origin main
|
%GIT_PATH% pull origin main
|
||||||
set git_pull_errorlevel = %errorlevel%
|
if %errorlevel% NEQ 0 (
|
||||||
echo INF: %date% %time% git pull exit: %git_pull_errorlevel%>>%LOG_PATH%
|
echo ERR: %date% %time% git pull error>>%LOG_PATH%
|
||||||
if %git_pull_errorlevel% NEQ 0(
|
echo 错误:更新失败,这通常是网络问题。请重试,或者开加速器再更新。详见"README.md"
|
||||||
echo 错误:更新失败,这通常是网络问题。请重试,或者开加速器再更新。详见README.md
|
) else (
|
||||||
|
echo INF: %date% %time% git pull successed>>%LOG_PATH%
|
||||||
)
|
)
|
||||||
|
|
||||||
::end
|
::end
|
||||||
|
|||||||
Reference in New Issue
Block a user