-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vaim-Emsg.sh
68 lines (55 loc) · 1.24 KB
/
Vaim-Emsg.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
function check(){
if [[ -f "email.conf" ]]; then
printf "└─[ ✔ ] Email.conf\n";
else
printf "└─[ ✖ ] Email.conf Failed\n";
clear
sleep 1
printf "└─[ ! ] Please Try with Delete your config and save from error :_) \n";
sleep 2
menu
fi
if [[ -f "pass.conf" ]]; then
printf "└─[ ✔ ] Pass.conf\n";
else
printf "└─[ ✖ ] Pass.conf Failed\n";
clear
sleep 1
printf "└─[ ! ] Please Try with Delete your config and save from error :_) \n";
sleep 2
menu
fi
if [[ -f "hosts.conf" ]]; then
printf "└─[ ✔ ] Hosts.conf\n";
else
printf "└─[ ✖ ] Hosts.conf Failed\n";
clear
sleep 1
printf "└─[ ! ] Please Try with Delete your config and save from error :_) \n";
sleep 2
menu
fi
if [[ -f "ports.conf" ]]; then
printf "└─[ ✔ ] Ports.conf\n";
else
printf "└─[ ✖ ] Ports.conf Failed\n";
clear
sleep 1
printf "└─[ ! ] Please Try with Delete your config and save from error :_) \n";
sleep 2
menu
fi
}
function menu(){
printf "└─Do you want to delete your old config files ( y / n ): ";
read -p ">>>>>> " ans
if [[ $ans == *'Y'* ]] || [[ $ans == *'y'* ]]; then
rm -f email.conf pass.conf hosts.conf ports.conf
bash config.sh
else
check
python3 filechecker.py
fi
}
menu