mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add omarchy-doctor
This commit is contained in:
@@ -1,3 +1,18 @@
|
||||
# Install all base packages
|
||||
mapfile -t packages < <(grep -v '^#' "$OMARCHY_INSTALL/omarchy-base.packages" | grep -v '^$')
|
||||
sudo pacman -S --noconfirm --needed "${packages[@]}"
|
||||
#!/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"
|
||||
}
|
||||
Reference in New Issue
Block a user