blob: 878d6ec97605cee34dd590d21b4fd653caafc4a5 (
plain)
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
|
#!/bin/bash
# Configuration file path
config_file="$HOME/.config/oma/.config"
# Source other script files
source init.sh
source dependencies.sh
source optimizations.sh
source options.sh
load_config() {
source "$config_file"
}
# Main function
main() {
# Check if configuration file exists
if [ ! -f "$config_file" ]; then
display_init_prompt
fi
# Load configuration
load_config
# Process command-line options
process_options "$@"
}
# Execute main function with command-line arguments
main "$@"
|