ceos-alpine-installer/lib/basic/06_utils.sh
John A. Hoeven e1ee30812f Fix first real-hardware install issues from tinkerpad run
- bootstrap: install bash before fetch (ash-only base installs)
- bootstrap/deploy: correct URL (drop /repo prefix, webroot is /srv/repo)
- 01_core: remove bash (bootstrap now handles it)
- ce-base/minimal/basic: BusyBox-compatible df check (drop --output=avail)
- ce-common: add ensure_testing_repo + install_pkg_testing
- 12_access: espeakup + espeakup-openrc from edge/testing
- 05_fonts: nerd-fonts → nerd-fonts-all (meta-package blocks by design)
- 06_utils: tealdeer + bash-completion from edge/testing
- 07_journal: jrnl test checks ~/.local/bin/jrnl (pipx not in PATH during install)
- 11_wiki: arch-aware CE_REPO (${ARCH} replaces hardcoded amd64); Forgejo TODO updated

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 21:55:21 +02:00

38 lines
1.6 KiB
Bash

#!/usr/bin/env bash
# Created by John A. Hoeven with the ethical assistance of Claude AI
# ---------------------------------------------------------------------------
# 06_utils.sh
# ~/projects/ceos/alpine-installer/lib/basic/06_utils.sh
# Version: v0.0.1 | Status: DEVELOPMENT
# Target: Alpine Linux x86-64 (tinkerpad / ThinkPad T480)
# ---------------------------------------------------------------------------
# Basic Tier subscript: additional utilities —
# tealdeer (@edge/testing), restic, jq, bc, zip, unzip, xz.
# Defines install_basic_utils().
# ---------------------------------------------------------------------------
install_basic_utils() {
log_info "--- basic/06_utils: additional utilities ---"
ensure_testing_repo
install_pkg_testing "tealdeer"
install_pkg_testing "tealdeer-bash-completion"
local -a PKGS=(restic jq bc zip unzip xz)
for pkg in "${PKGS[@]}"; do
install_pkg "${pkg}"
done
run_test "tldr present" 'command -v tldr >/dev/null 2>&1' warn
run_test "restic present" 'command -v restic >/dev/null 2>&1' warn
run_test "jq present" 'command -v jq >/dev/null 2>&1' warn
run_test "bc present" 'command -v bc >/dev/null 2>&1' warn
run_test "zip present" 'command -v zip >/dev/null 2>&1' warn
run_test "xz present" 'command -v xz >/dev/null 2>&1' warn
}
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
SCRIPT_NAME="basic_06_utils"
source "${SCRIPT_DIR}/lib/ce-common.sh" || { echo "ERROR: ce-common.sh not found"; exit 1; }
check_not_root
install_basic_utils
print_summary
fi