-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathuninstall.sh
38 lines (31 loc) · 860 Bytes
/
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
#!/usr/bin/env bash
# banner
echo "Welcome to LibreOffice Theme Uninstaller"
echo
# select libreoffice installation method
source lib/libreoffice_finder.bash
echo "Select yout LibreOffice installation type:"
installation_path_check
# load installed theme from installation path
source lib/theme_uninstaller.bash
populate_installed_theme
# select theme to uninstall
echo "Select theme to uninstall:"
PS3='Enter the number: '
select answer in "${INSTALLED_THEMES[@]}" Quit;
do
for item in "${INSTALLED_THEMES[@]}" Quit; do
if [[ $item == $answer ]]; then
if [[ $item == "Quit" ]]; then
exit
fi
PREFERED_THEME=$item
break 2
fi
done;
done;
# display warning messages
source lib/theme_installer.bash
display_warning_banner
# do uninstall stuff
uninstall_installed_theme