File size: 612 Bytes
d70d08b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
@echo off
pushd %~dp0
if not exist .git (
GOTO:notgit
)
where /q git.exe
if %ERRORLEVEL% EQU 0 (
GOTO:pull
)
GOTO:missgit
:pull
call git config --local url."https://".insteadOf git://
call git config --local url."https://github.com/".insteadOf git@github.com:
call git config --local url."https://".insteadOf ssh://
call git pull --rebase --autostash
if %ERRORLEVEL% neq 0 (
echo Error updating
)
GOTO:end
:missgit
echo Install git to update
GOTO:end
:notgit
echo Only able to update if you clone the repository (git clone https://github.com/teralomaniac/clewd.git)
GOTO:end
:end
pause
popd
exit /B |