-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall.sh
executable file
·52 lines (42 loc) · 1.17 KB
/
install.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
#!/usr/bin/env bash
# load theme resources
source lib/theme_loader.bash
check_theme_components
clear
# welcome text
echo "========== WELCOME TO: ==========
_ ___ _____ ____
| | / _ \ |_ _/ ___|
| | | | | | _____ | || |
| |__| |_| | |_____| | || |___
|_____\___/ |_| \____|
================================="
echo
# select LibreOffice installation type
source lib/libreoffice_finder.bash
echo "Select your LibreOffice installation type:"
installation_path_check
# select theme
echo "Select your prefered theme:"
PS3='Enter the number: '
select answer in "${THEMES[@]}" Quit;
do
for item in "${THEMES[@]}" Quit; do
if [[ $item == $answer ]]; then
if [[ $item == "Quit" ]]; then
exit
fi
PREFERED_THEME=$item
break 2
fi
done;
done;
# display warning banner before installing theme
source lib/theme_installer.bash
display_warning_banner
# check previous installed same theme
check_is_theme_installed_before
# installing theme by moving default files and copying new files (Need Root Password)
install_theme
# apply installed theme
apply_installed_theme