#!/usr/bin/env bash # Created by John A. Hoeven with the ethical assistance of Claude AI # --------------------------------------------------------------------------- # 04_vcs.sh # ~/projects/ceos/alpine-installer/lib/minimal/04_vcs.sh # Version: v0.0.1 | Status: DEVELOPMENT # Target: Alpine Linux x86-64 (tinkerpad / ThinkPad T480) # --------------------------------------------------------------------------- # Minimal Tier subscript: version control and transfer — git, rsync, openssl, gnupg. # Defines install_minimal_vcs(). # --------------------------------------------------------------------------- install_minimal_vcs() { log_info "--- minimal/04_vcs: version control and transfer ---" local -a PKGS=(git rsync openssl gnupg) for pkg in "${PKGS[@]}"; do install_pkg "${pkg}" done run_test "git present" 'command -v git >/dev/null 2>&1' warn run_test "rsync present" 'command -v rsync >/dev/null 2>&1' warn run_test "gpg present" 'command -v gpg >/dev/null 2>&1' warn } if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" SCRIPT_NAME="04_vcs" source "${SCRIPT_DIR}/lib/ce-common.sh" || { echo "ERROR: ce-common.sh not found"; exit 1; } check_not_root install_minimal_vcs print_summary fi