File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ read -p " Do you want to start the installer? [Y/N]: " UserInput
4
+ if [[ " ${UserInput^^} " != " Y" ]]; then
5
+ exit 0
6
+ fi
7
+
8
+ echo
9
+
10
+ Menu () {
11
+ echo " Select an appropriate menu item:"
12
+ echo " [1] Clone repository and install requirements"
13
+ echo " [2] Only install requirements"
14
+ read -p " Enter the number: " UserChoice
15
+ echo
16
+
17
+ if [[ " ${UserChoice} " == " 1" ]]; then
18
+ CloneAndInstall
19
+ elif [[ " ${UserChoice} " == " 2" ]]; then
20
+ InstallDependencies
21
+ else
22
+ echo " Incorrect choice."
23
+ echo
24
+ Menu
25
+ fi
26
+ }
27
+
28
+ CloneAndInstall () {
29
+ echo " Cloning repository and installing requirements..."
30
+ git clone https://github.com/OSINT-TECHNOLOGIES/dpulse
31
+ cd dpulse || exit 1
32
+ pip install -r requirements.txt
33
+
34
+ echo
35
+ }
36
+
37
+ InstallDependencies () {
38
+ echo " Installing requirements..."
39
+ pip install -r requirements.txt
40
+
41
+ echo
42
+ }
43
+
44
+ End () {
45
+ echo " Installation end."
46
+ echo
47
+ read -p " Press Enter to continue..."
48
+ }
49
+
50
+ Menu
51
+ End
You can’t perform that action at this time.
0 commit comments