forked from alexanderepstein/Bash-Snippets
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uninstall.sh
executable file
·69 lines (60 loc) · 1.53 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
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
#!/bin/bash
# Author: Alexander Epstein https://github.com/alexanderepstein
if [[ -f /usr/local/bin/currency ]];then
echo -n "Do you wish to uninstall currency [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd currency || exit 1
./uninstall.sh || exit 1
cd .. || exit 1
fi
unset answer
fi
if [[ -f /usr/local/bin/stocks ]];then
echo -n "Do you wish to uninstall stocks [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd stocks || exit 1
./uninstall.sh
cd .. || exit 1
fi
unset answer
fi
if [[ -f /usr/local/bin/weather ]];then
echo -n "Do you wish to uninstall weather [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd weather || exit 1
./uninstall.sh
cd .. || exit 1
fi
unset answer
fi
if [[ -f /usr/local/bin/crypt ]];then
echo -n "Do you wish to uninstall crypt [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd crypt || exit 1
./uninstall.sh
cd .. || exit 1
fi
unset answer
fi
if [[ -f /usr/local/bin/movies ]];then
echo -n "Do you wish to uninstall movies [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd movies || exit 1
./uninstall.sh
cd .. || exit 1
fi
fi
if [[ -f /usr/local/bin/taste ]];then
echo -n "Do you wish to uninstall movies [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd taste || exit 1
./uninstall.sh
cd .. || exit 1
fi
fi