forked from Usergh0st/bspwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sh
executable file
·46 lines (39 loc) · 1.47 KB
/
main.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
#!/bin/bash
# =============================================================================
# Project Name: bspwm-on-fedora
# Description : Main script for installing and configuring BSPWM on Fedora
# -----------------------------------------------------------------------------
# Author : José AZOCAR (azocarone)
# Created on : 2024-09-09
# -----------------------------------------------------------------------------
# Version : RC5
# =============================================================================
source helpers/echo_func.sh
source settings/global.sh
source helpers/main_utils.sh
source helpers/step.sh
main() {
main_check_exists "${files[banner]}" || return 1
main_display_banner "${files[banner]}"
main_confirm_installation || {
echo_error "Installation aborted."
return 1
}
local -A steps=(
#[rpm_installation]=${packages[rpm]}
#[github_installation]="${packages[github]}"
#[rpm_configuration]="rpm_pkgs_permissions"
#[font_deployment]="font_paths"
#[bspwm_setup]="${bspwm_assets[@]} ${paths[home]}"
[zsh_setup]="${zsh_assets[@]}"
)
echo_info "Starting the installation process."
for function in "${!steps[@]}"; do
step_"$function" "${steps[$function]}" || {
echo_error "The step $function failed."
return 1
}
done
echo_check "Installation completed, please reboot to apply the configuration."
}
main || exit 1