fix update batch file for setting mirror

This commit is contained in:
soarqin committed 2026-06-07 13:12:24 +08:00
1 parent 5bc40335eb
commit 199ab47597
1 file changed
+10 -10
+10 -10
View File
@@ -3,16 +3,6 @@
SETLOCAL enableextensions enabledelayedexpansion
chcp 65001 >NUL
REM 检查参数,如果不为空则只运行特定函数
IF "x%1" == "x" GOTO START
CALL :%1
ENDLOCAL
EXIT /b %errorlevel%
:START
REM 本地目录,如果当前目录有.git文件夹的存在,则不使用此目录
SET LocalFolder=FactoryBluePrints
@@ -28,6 +18,16 @@ SET MinGitFolder=%ALLUSERSPROFILE%\MinGit
REM MinGit版本号
SET MinGitVersion=2.52.0
REM 检查参数,如果不为空则只运行特定函数
IF "x%1" == "x" GOTO START
CALL :%1
ENDLOCAL & SET "GIT_PATH=%GIT_PATH%"
EXIT /b %errorlevel%
:START
CALL :SETUP_MINGIT
IF %errorlevel% NEQ 0 (
GOTO EOF