mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-03 08:17:52 +00:00
- Replace legacy ci scripts with meta build-test-matrix and resolve-invokable-roles - Switch log tailing to scripts/meta/log-tail.sh - Rename local DNS helpers to scripts/dns/* - Run ci-deploy-discover via development docker-up - Replace deploy-local-full with development compose orchestrator - Ensure INFINITO_DISTRO is passed explicitly for local full deploy https://chatgpt.com/share/696f9ccd-e4d8-800f-9c67-9c071188ecd0 https://chatgpt.com/share/696facf5-b2fc-800f-8a33-3352dd193c54
26 lines
526 B
Bash
Executable File
26 lines
526 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
LOG_DIR="${1:-logs}"
|
|
LINES="${2:-200}"
|
|
|
|
echo "=== DEBUG: logs ==="
|
|
ls -la "${LOG_DIR}" || true
|
|
echo
|
|
|
|
shopt -s nullglob
|
|
|
|
found=false
|
|
for f in "${LOG_DIR}"/*.log; do
|
|
found=true
|
|
echo "============================================================"
|
|
echo "=== Last ${LINES} lines of: ${f}"
|
|
echo "============================================================"
|
|
tail -n "${LINES}" "${f}" || true
|
|
echo
|
|
done
|
|
|
|
if [[ "${found}" = false ]]; then
|
|
echo "No log files found in ${LOG_DIR}"
|
|
fi
|