-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecking.sh
98 lines (93 loc) · 1.26 KB
/
checking.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
fo() {
cd $PREFIX/bin
}
ha() {
printf "\033[1;96m[√] \033[1;93minstalled"
}
na() {
printf "\033[1;91m[×] Not installed!! "
}
gitp() {
cd $PREFIX/bin
if [ -e git ];then
ha
else
na
fi
}
phph() {
fo
if [ -e php ];then
ha
else
na
fi
}
pythonn() {
fo
if [ -e python ];then
ha
else
na
fi
}
wgett() {
fo
if [ -e wget ];then
ha
else
na
fi
}
openssh() {
fo
if [ -e ssh ];then
ha
else
na
fi
}
pippp() {
fo
if [ -e pip ];then
ha
else
na
fi
}
pippp2() {
fo
if [ -e pip2 ];then
ha
else
na
fi
}
pippp3() {
fo
if [ -e pip3 ];then
ha
else
na
fi
}
git="$(gitp)"
ssh="$(openssh)"
php="$(phph)"
wget="$(wgett)"
python="$(pythonn)"
pipp="$(pippp)"
pipp2="$(pippp2)"
pipp3="$(pippp3)"
ii="$(curl -s -N ifconfig.me)"
#printf "\n\t\t\t\033[1;92m Your IP :\033[1;97m $ii\n"
printf "\n\033[1;92m Checking git >> \033[0m $git\n"
#printf "\033[1;92m Checking openssh >> $ssh\n"
#printf "\033[1;92m Checking php >> $php\n"
printf "\033[1;92m Checking wget >> \033[0m $wget\n"
printf "\033[1;92m Checking python >> \033[0m $python\n"
printf "\033[1;92m Checkin pip >> \033[0m $pipp\n"
printf "\033[1;92m Checking pip2 >> \033[0m $pipp2\n"
printf "\033[1;92m Checking pip3 >> \033[0m $pipp3\n"
echo
cd ~