mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 19:56:53 +00:00
The drop and truncate helpers ended with `[[ $rc -ne 0 ]] && warn`, which returns 1 when the command succeeded. The per-stack subshell runs on the left of `||`, where set -e is suspended, so its status is that of the last helper: every successful MariaDB drop printed "DB purge failed (rc=1)" and the script exited 1. The helpers now end with an if statement, which returns 0 when nothing failed and still warns when something did. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>