24 lines
579 B
Batchfile
24 lines
579 B
Batchfile
@echo off
|
|
pushd %~dp0
|
|
git --version > nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo Git no esta instalado
|
|
echo Instalalo desde https://git-scm.com/downloads
|
|
goto end
|
|
) else (
|
|
if not exist .git (
|
|
git init
|
|
git remote add origin https://git.sfkao.net/SFKao/Las_3000-modpack.git
|
|
git fetch
|
|
git checkout -t origin/main -f
|
|
)
|
|
call git fetch
|
|
call git pull --rebase --autostash
|
|
if %errorlevel% neq 0 (
|
|
REM Si pasa algo
|
|
echo Han habido errores actualizando, contactar con SFKao
|
|
goto end
|
|
)
|
|
)
|
|
:end
|
|
pause |