omarchy-config/bootstrap.sh
2026-07-17 20:25:09 +02:00

37 lines
784 B
Bash
Executable File

#!/usr/bin/env bash
set -uo pipefail
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
require_command() {
local command_name="$1"
if ! command -v "$command_name" >/dev/null 2>&1; then
echo "Missing required command: $command_name"
exit 1
fi
}
echo "========================================"
echo " Milan's Omarchy Bootstrap"
echo "========================================"
echo
echo "Verifying required commands..."
require_command yay
require_command git
require_command systemctl
require_command fc-cache
require_command flatpak
echo "All required commands are available."
echo
if [[ ! -f "$REPO_DIR/tracked-configs.txt" ]]; then
echo "Missing tracked-configs.txt"
exit 1
fi
chmod +x "$REPO_DIR/install.sh"
"$REPO_DIR/install.sh"