-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
48 lines (37 loc) · 1.47 KB
/
Copy pathuninstall.sh
File metadata and controls
48 lines (37 loc) · 1.47 KB
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
#!/usr/bin/env bash
# file = THE/uninstall.sh
echo -e "\e[1;31m"
echo "╔════════════════════════════════════════════╗"
echo "║ 🧹 Uninstalling TERMUX HACKER EDITION ║"
echo "╚════════════════════════════════════════════╝"
echo -e "\e[1;33m➤ Goodbye! We'll miss you.\e[0m"
sleep 3
echo -e "\n🧹 Uninstalling Termux Hacker Edition Panel..."
# Remove autostart entry from ~/.bashrc
if grep -q 'bash ~/.banner.sh' ~/.bashrc; then
sed -i '/bash ~/.banner.sh/d' ~/.bashrc
echo "✔️ Removed autostart entry from ~/.bashrc"
else
echo "ℹ️ No autostart entry found in ~/.bashrc"
fi
# Remove background update call from ~/.bashrc
if grep -q 'nohup bash ~/.update.sh >/dev/null 2>&1 &' ~/.bashrc; then
sed -i '/nohup bash ~/.update.sh >/dev/null 2>&1 & disown/d' ~/.bashrc
echo "✔️ Removed background update entry from ~/.bashrc"
else
echo "ℹ️ No background update entry found in ~/.bashrc"
fi
# Remove the actual scripts if exist
if [ -f ~/.banner.sh ]; then
rm ~/.banner.sh
echo "✔️ Removed ~/.banner.sh"
else
echo "ℹ️ ~/.banner.sh not found."
fi
if [ -f ~/.update.sh ]; then
rm ~/.update.sh
echo "✔️ Removed ~/.update.sh"
else
echo "ℹ️ ~/.update.sh not found."
fi
echo -e "\n✅ Uninstallation complete. Please restart Termux."