-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.sh
More file actions
executable file
·60 lines (50 loc) · 1.55 KB
/
main.sh
File metadata and controls
executable file
·60 lines (50 loc) · 1.55 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# clear the screen
clear
echo ""
echo ""
# Display the name of the tool
figlet -t -f 3d "PROCESSING" | lolcat
echo ""
# A border to cover the description and its centered
echo "=================================================================================="
echo "Process your data with ease, Make Sure you've already run the Collection Scripts"
echo "=================================================================================="
echo ""
# variables
RED='\033[0;31m'
NC='\033[0m' # No Color
GREEN='\033[0;32m'
DARK_GRAY='\033[1;30m'
# Display menu options
echo -e "1. Start ${DARK_GRAY}-| Process all your data${NC}"
echo -e "2. Data Collection ${DARK_GRAY}-| Run the Data Collection Scripts${NC}"
echo -e "3. Data Upload ${DARK_GRAY}-| Run the Data Upload Scripts${NC}"
echo -e "${GREEN}4. Go Back ${DARK_GRAY}-| Go back to the main menu${NC}"
echo -e "${RED}5. Exit ${DARK_GRAY}-| Exit the program${NC}"
echo -e "${NC}"
# Prompt the user for input
read -p "Choose an option (1-5): " choice
# Check the user's choice and execute the corresponding script
case $choice in
1)
./scripts/data/process/logs.sh
;;
2)
./scripts/data/collection/main.sh
;;
3)
./scripts/data/upload/main.sh
;;
4)
./scripts/data/main.sh
;;
5)
./exit.sh
;;
*)
echo -e "${RED}Invalid choice. Please choose a number between 1 and 7.${NC}"
sleep 1.5
exec ./scripts/data/process/main.sh
;;
esac