-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathuninstall.sh
42 lines (40 loc) · 1.18 KB
/
uninstall.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
#!/bin/bash
#https://github.com/Kiran-Bose/supreme
if [[ -f /usr/bin/supreme ]]
then
echo -e "supreme is installed through package manager. You should uninstall through package manager"
else
if command -v supreme &>/dev/null; then
echo -e "Are you sure you want to uninstall supreme? (y/n)"
read remopt
case "$remopt" in
y|Y)if [[ -f /usr/local/bin/supreme ]]
then
sudo rm -vf /usr/local/bin/supreme
fi
if [[ -f /usr/local/bin/kbcm ]]
then
sudo rm -vf /usr/local/bin/kbcm
fi
if [[ -f /usr/local/bin/kbfunctions_basic ]]
then
sudo rm -vf /usr/local/bin/kbfunctions_basic
fi
if [[ -f /usr/local/bin/progress_bar ]]
then
sudo rm -vf /usr/local/bin/progress_bar
fi
if [[ -f /usr/local/bin/kcm ]]
then
sudo rm -vf /usr/local/bin/kcm
fi
echo
echo -e "Following dependencies have to be removed manually through package manager\n(1)rclone\n(2)jq\n(3)curl [Available by default in most of the linux distros]"
echo;;
*)echo -e "You opted out from uninstalling supreme";;
esac
else
echo "supreme not installed: Hence not removed"
fi
fi