Las_3000-modpack/updateMods.bat
2025-03-03 15:57:03 +01:00

23 lines
573 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