better structure
This commit is contained in:
31
scripts/installer/install.sh
Executable file
31
scripts/installer/install.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# Source helper file
|
||||
source $SCRIPT_DIR/helper.sh
|
||||
|
||||
# Trap for unexpected exits
|
||||
trap 'trap_message' INT TERM
|
||||
|
||||
# Script start
|
||||
log_message "Installation started"
|
||||
print_bold_blue "\nSimple Hyprland"
|
||||
echo "---------------"
|
||||
|
||||
# Check if running as root
|
||||
check_root
|
||||
|
||||
# Check if OS is Arch Linux
|
||||
check_os
|
||||
|
||||
# Run child scripts
|
||||
run_script "prerequisites.sh" "Prerequisites Setup"
|
||||
run_script "hypr.sh" "Hyprland & Critical Softwares Setup"
|
||||
run_script "utilities.sh" "Basic Utilities & Configs Setup"
|
||||
run_script "theming.sh" "Themes and Tools Setup"
|
||||
run_script "final.sh" "Final Setup"
|
||||
|
||||
print_bold_blue "\n🌟 Setup Complete\n"
|
||||
log_message "Installation completed successfully"
|
||||
Reference in New Issue
Block a user