-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirements.sh
48 lines (29 loc) · 1.02 KB
/
requirements.sh
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
#!/bin/bash
#this script will install the neccessery dependencies for pwdman.sh to work
# please execute this script atleast once before executing the pwdman.sh
# pwdman.sh will not work correctly without executing this script
echo -e "\e[36m\nPlease Wait...Requested Dependancies For pwdman.sh Will Be Installed Shortly...\e[0m"
sleep 3
com_exit() #function for executing when EXIT signal detected
{
figlet "All Set!!" | lolcat
echo -e "\nFinished.Exiting..." | lolcat
sleep 3
echo -e "\n\e[1mNow you can successfully run pwdman.sh\e[0m" | lolcat
}
trap unex_exit SIGINT #catching interruption signal
unex_exit() #function to execute when (CTRL+C) detected
{
clear
echo -e "\e[31m\n(CTRL+C Detected).\e[5mExiting...\e[0m"
sleep 3
echo -e "\e[32m\e[1m\nYou Can Run requirement.sh Anytime..\e[0m"
exit
}
#install required dependencies
apt install figlet
apt install ruby
gem install lolcat
apt install gnupg
clear #clearing terminal screen
trap com_exit EXIT #catching EXIT signal