-
Notifications
You must be signed in to change notification settings - Fork 40
/
snap.sh
156 lines (154 loc) · 4.17 KB
/
snap.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# A tool by nitrp from www.noob-hackers.com
# Be a unique person not copy cat
# Colours
#-----------------
red='\033[1;31m'
rset='\033[0m'
grn='\033[1;32m'
ylo='\033[1;33m'
blue='\033[1;34m'
cyan='\033[1;36m'
pink='\033[1;35m'
#-----------------
# Coding starts
clear
echo '
.--. .--,
| | / /
| | / /
| | / /
| |/ ;-._
} ` _/ / ;
| /` ) / /
| / /_/\_/\
|/ / |
( \ - |
\ `. /
| |
| |
_
_ __ _ |_)
_> | |(_||v1.0 '|lolcat
echo
echo -e "$red ▶ Coded by$grn N17RO$red ◀$rset"
echo -e "$red ⫸$ylo YOUTUBE- Noob Hackers$red ⫷$rset"
echo
# Functions
echo -e "$red [NOTE:- NEED INTERNET CONNECTION]$rset"
echo " "
echo " "
echo -e "$grn >>>>>>>>$ylo [Options]$grn <<<<<<<<$rset"
echo " "
echo " "
echo -e "$red ➡$cyan [1️⃣] Termux backup"
echo -e "$red ➡$cyan [2️⃣] Termux restore"
echo -e "$red ➡$cyan [3️⃣] Update script"
echo -e "$red ➡$cyan [4️⃣] Exit"
echo " "
echo " "
echo -e "$grn >>>>>>$ylo [SELECT]$grn <<<<<<$rset"
echo " "
echo -e "$cyan [[[$ylo Select any option$cyan]]]$rset"
echo " "
read n
case "$n" in
1)echo " "
echo " "
echo " "
echo -e "$red You are going to$grn Backup$red Termux$rset"
echo " "
echo -e "$grn Press$ylo ENTER$red to continue$rset"
echo " "
read hulke
cd $HOME/snap/bars
echo " "
echo -e "$ylo To terminate the process click$red 't'$ylo or to continue click on$grn ENTER$rset"
read choice
if [ $choice = 't' ] ; then
echo -e "$red Are you sure? Press$grn ENTER$red to exit$rset"
read hulkee
cd $HOME/snap/
bash snap.sh
else
bash backup.sh
echo " "
echo " "
echo -e "$grn >>>>>>>>>$ylo [EXIT]$grn <<<<<<<<<$rset"
echo " "
echo -e "$cyan click$grn ENTER$cyan to go back into snap menu$rset"
echo " "
read punch
fi
cd $HOME/snap
bash snap.sh ;;
2)echo " "
echo " "
echo " "
echo -e "$red You are going to$red Restore termux$rset "
echo " "
echo -e "$grn Press$ylo ENTER$grn to continue$rset"
echo " "
read nitro
cd $HOME/snap/bars
echo " "
echo -e "$ylo To terminate the process click$red 't' $ylo or to continue click on$grn ENTER$rset"
read choice
if [ $choice = 't' ] ; then
echo -e "$red Are you sure? Press$grn ENTER$red to exit$rset"
read nitroo
cd $HOME/snap
bash snap.sh
else
bash restore.sh
echo " "
echo " "
echo -e "$grn >>>>>>>$ylo [EXIT]$grn <<<<<<<<<$rset"
echo " "
echo -e "$cyan click$grn ENTER$cyan to go back into snap menu$rset"
echo " "
read punch
fi
cd $HOME/snap
bash snap.sh ;;
3)echo " "
echo " "
echo " "
echo -e "$red You are going to$grn Update the$red Script$rset "
echo " "
echo -e "$grn Press$ylo ENTER$grn to continue$rset"
echo " "
read mon
cd $HOME/snap/bars
echo " "
echo -e "$ylo To terminate the process click$red 't' $ylo or to continue click on$grn ENTER$rset"
read choice
if [ $choice = 't' ] ; then
echo -e "$red Are you sure? Press$grn ENTER$red to exit$rset"
read monn
cd $HOME/snap
bash snap.sh
else
bash update.sh
echo " "
echo " "
echo -e "$grn >>>>>>>>$ylo [EXIT]$grn <<<<<<<<<$rset"
echo " "
echo -e "$cyan click$grn ENTER$cyan to go back into snap menu$rset"
echo " "
read punch
fi
cd $HOME/snap
bash snap.sh ;;
4)
sleep 2.0
clear
echo " "
echo -e "$grn
____ _ _ ____ ____ _ _ ___
( _ \( \/ )( ___) ( _ \( \/ )( ___)
) _ < \ / )__) ) _ < \ / )__)
(____/ (__) (____) (____/ (__) (____)...$cyan have a awesome day$rset"
echo " "
echo " "
cd $HOME
esac