24 lines
621 B
Bash
24 lines
621 B
Bash
#!/bin/bash
|
|
# scripts/30-install-packages.sh - Install packages from package lists
|
|
|
|
set -euo pipefail
|
|
|
|
# Source utilities
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Run module when called directly
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
if [ $# -ne 1 ]; then
|
|
log_error "Usage: $0 <dotfiles_directory>"
|
|
exit 1
|
|
fi
|
|
dotfiles_dir="$1"
|
|
module_script="$dotfiles_dir/packages/install.sh"
|
|
|
|
if [ ! -x "$module_script" ]; then
|
|
log_error "Module script not found or not executable: $module_script"
|
|
exit 1
|
|
fi
|
|
bash "$module_script" "$dotfiles_dir"
|
|
fi
|