-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.sh
98 lines (97 loc) · 2.07 KB
/
install.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
#!/usr/bin/env bash
# This code write by Mr.nope
# Black-Tool Installing
# Version 2.6.5
if [[ "$(id -u)" -ne 0 ]]; then
echo "Please, Run This Programm as Root!"
exit 1
fi
function ext() {
clear
echo "Exiting..."
exit 1
}
try1() {
printf '\033]2;Black-Tool-Installing/color\a'
clear
echo ""
echo " █▄▄ █░░ ▄▀█ █▀▀ █▄▀ ▄▄ ▀█▀ █▀█ █▀█ █░░ 2.6.5"
echo " █▄█ █▄▄ █▀█ █▄▄ █░█ ░░ ░█░ █▄█ █▄█ █▄▄"
echo ""
echo "color:
{1}.red
{2}.green
{3}.blue
{4}.None
{99}.Exit
"
printf 'Enter color: '
read color;
if [[ "$color" == "1" ]]; then
cd color/red/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "2" ]]; then
cd color/green/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "3" ]]; then
cd color/blue/ && chmod a+x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "4" ]]; then
chmod +x hack
cp hack /usr/bin
cp hack /usr/local/bin
elif [[ "$color" == "99" ]]; then
ext
else
try1
fi
}
run() {
clear
printf '\033]2;Starting\a'
echo "Starting..."
sleep 2
try1
printf '\033]2;Installing...\a'
echo "Installing..."
sleep 2
chmod +x uninstall.sh
apt-get update
apt-get upgrade
apt install xtitle
apt install lolcat
apt install python
apt install python3
printf "Press any key To continue..."
read -n 1
echo ""
echo "Finish...!
Usage:
hack --help
"
echo ""
exit 1
}
check() {
printf '\033]2;Black-Tool/Installing/Check-Internet\a'
clear
echo "Checking Internet..."
sleep 1
ping -w 1 google.com > /dev/null
if [[ "$?" != 0 ]]; then
clear
echo "
Please, Check Internet!
"
exit 1
else
clear
echo "Internet Connected!"
sleep 2
run
fi
}
check