Skip to content

Commit d4e752b

Browse files
Updated installer.bat with new variant
1 parent ee97e34 commit d4e752b

File tree

1 file changed

+20
-66
lines changed

1 file changed

+20
-66
lines changed

installer.bat

Lines changed: 20 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,20 @@
1-
@echo off
2-
set /p UserInput=Do you want to start installer? [Y/N]:
3-
if /I "%UserInput%" neq "Y" goto End
4-
5-
echo.
6-
7-
:CheckGit
8-
where git >nul 2>&1
9-
if %errorlevel% neq 0 (
10-
echo Git is not installed. Please install Git first.
11-
set GIT_NOT_INSTALLED=1
12-
) else (
13-
set GIT_NOT_INSTALLED=0
14-
)
15-
16-
echo.
17-
18-
:Menu
19-
echo Select appropriate menu item
20-
echo.
21-
echo [1] Clone repository and install requirements (requires installed Git)
22-
echo [2] Only install requirements
23-
echo.
24-
set /p UserChoice=Enter the number:
25-
26-
echo.
27-
28-
if "%UserChoice%"=="1" (
29-
if %GIT_NOT_INSTALLED%==1 (
30-
echo You cannot clone the repository because Git is not installed.
31-
echo.
32-
goto Menu
33-
)
34-
call :CloneAndInstall
35-
) else if "%UserChoice%"=="2" (
36-
call :InstallDependencies
37-
) else (
38-
echo Incorrect choice.
39-
echo.
40-
goto Menu
41-
)
42-
43-
goto End
44-
45-
:CloneAndInstall
46-
echo Cloning repository and installing requirements...
47-
git clone https://github.com/OSINT-TECHNOLOGIES/dpulse
48-
cd dpulse
49-
pip install -r requirements.txt
50-
51-
echo.
52-
53-
goto End
54-
55-
:InstallDependencies
56-
echo Installing requirements...
57-
pip install -r requirements.txt
58-
59-
echo.
60-
61-
goto End
62-
63-
:End
64-
echo Installation end.
65-
echo.
66-
pause
1+
#!/bin/bash
2+
3+
echo "Select appropriate menu item"
4+
echo "[1] Clone repository and install requirements (requires installed Git)"
5+
echo "[2] Only install requirements"
6+
read -p "Enter the number: " UserChoice
7+
8+
if [ "$UserChoice" == "1" ]; then
9+
echo "Cloning repository and installing requirements..."
10+
git clone https://github.com/OSINT-TECHNOLOGIES/dpulse
11+
cd dpulse
12+
pip install -r requirements.txt
13+
elif [ "$UserChoice" == "2" ]; then
14+
echo "Installing requirements..."
15+
pip install -r requirements.txt
16+
else
17+
echo "Incorrect choice."
18+
fi
19+
20+
echo "Installation end."

0 commit comments

Comments
 (0)