mirror of
https://github.com/DSPBluePrints/FactoryBluePrints.git
synced 2026-11-19 17:03:13 +08:00
fix update batch file for setting mirror
This commit is contained in:
1 parent
5bc40335eb
commit
199ab47597
1 file changed
+10
-10
+10
-10
@@ -3,16 +3,6 @@
|
|||||||
SETLOCAL enableextensions enabledelayedexpansion
|
SETLOCAL enableextensions enabledelayedexpansion
|
||||||
chcp 65001 >NUL
|
chcp 65001 >NUL
|
||||||
|
|
||||||
REM 检查参数,如果不为空则只运行特定函数
|
|
||||||
IF "x%1" == "x" GOTO START
|
|
||||||
CALL :%1
|
|
||||||
|
|
||||||
ENDLOCAL
|
|
||||||
EXIT /b %errorlevel%
|
|
||||||
|
|
||||||
|
|
||||||
:START
|
|
||||||
|
|
||||||
REM 本地目录,如果当前目录有.git文件夹的存在,则不使用此目录
|
REM 本地目录,如果当前目录有.git文件夹的存在,则不使用此目录
|
||||||
SET LocalFolder=FactoryBluePrints
|
SET LocalFolder=FactoryBluePrints
|
||||||
|
|
||||||
@@ -28,6 +18,16 @@ SET MinGitFolder=%ALLUSERSPROFILE%\MinGit
|
|||||||
REM MinGit版本号
|
REM MinGit版本号
|
||||||
SET MinGitVersion=2.52.0
|
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
|
CALL :SETUP_MINGIT
|
||||||
IF %errorlevel% NEQ 0 (
|
IF %errorlevel% NEQ 0 (
|
||||||
GOTO EOF
|
GOTO EOF
|
||||||
|
|||||||
Reference in new issue
Block a user