mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
18 lines
615 B
Bash
18 lines
615 B
Bash
#!/bin/bash
|
|
|
|
# Installation function
|
|
omarchy_install() {
|
|
# Install all base packages
|
|
mapfile -t packages < <(grep -v '^#' "$OMARCHY_INSTALL/omarchy-base.packages" | grep -v '^$')
|
|
sudo pacman -S --noconfirm --needed "${packages[@]}"
|
|
}
|
|
|
|
# Verification function
|
|
omarchy_verify() {
|
|
# Check if package list exists
|
|
[[ -f "$OMARCHY_INSTALL/omarchy-base.packages" ]] || add_error "Base packages list missing"
|
|
|
|
# Check if some key base packages are installed
|
|
command -v bash >/dev/null 2>&1 || add_error "Bash not installed"
|
|
command -v sudo >/dev/null 2>&1 || add_error "Sudo not installed"
|
|
} |