updated code

This commit is contained in:
Saifeddine ALOUI 2023-06-10 16:09:57 +02:00
parent aee0358a96
commit feade2d882
2 changed files with 12 additions and 12 deletions

View File

@ -46,9 +46,9 @@ if errorlevel 1 (
) )
:NO_INTERNET :NO_INTERNET
if exist GPT4All ( if exist lollms-webui (
echo GPT4All folder found echo lollms-webui folder found
cd GPT4All cd lollms-webui
set /p="Activating virtual environment ..." <nul set /p="Activating virtual environment ..." <nul
call env\Scripts\activate.bat call env\Scripts\activate.bat
) )
@ -108,16 +108,16 @@ goto :CHECK_PYTHON_INSTALL
:CLONE_REPO :CLONE_REPO
REM Check if repository exists REM Check if repository exists
if exist GPT4All ( if exist lollms-webui (
echo GPT4All folder found echo lollms-webui folder found
cd GPT4All cd lollms-webui
echo Pulling latest changes echo Pulling latest changes
git pull git pull
) else ( ) else (
echo Cloning repository... echo Cloning repository...
rem Clone the Git repository into a temporary directory rem Clone the Git repository into a temporary directory
git clone https://github.com/ParisNeo/lollms-webui.git ./GPT4All git clone https://github.com/ParisNeo/lollms-webui.git ./lollms-webui
cd GPT4All cd lollms-webui
echo Pulling latest changes echo Pulling latest changes
git pull git pull
) )

View File

@ -57,13 +57,13 @@ if ping -q -c 1 google.com >/dev/null 2>&1; then
echo Pulling latest changes echo Pulling latest changes
git pull origin main git pull origin main
else else
if [[ -d GPT4All ]] ;then if [[ -d lollms-webui ]] ;then
cd GPT4All cd lollms-webui
else else
echo Cloning repository... echo Cloning repository...
rem Clone the Git repository into a temporary directory rem Clone the Git repository into a temporary directory
git clone https://github.com/ParisNeo/lollms-webui.git ./GPT4All git clone https://github.com/ParisNeo/lollms-webui.git ./lollms-webui
cd GPT4All cd lollms-webui
fi fi
fi fi
echo Pulling latest version... echo Pulling latest version...