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

View File

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