mirror of
https://github.com/DSPBluePrints/FactoryBluePrints.git
synced 2026-11-19 17:03:13 +08:00
Merge pull request #213 from soarqin/fix/batch-file
fix update batch file for setting mirror
This commit is contained in:
1 file changed
+10
-10
+10
-10
@@ -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
|
||||
|
||||
Reference in new issue
Block a user