mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-10-31 21:18:08 +00:00
Recovered 70 prior commits from Gitea mirror and resolved divergent history using --allow-unrelated-histories. Integrated 16 recent local commits via patch. Applied targeted technical fixes: added explicit bash shell declaration in shellcheck YAML configuration (commit 693caff) and targeted SC2120 disables in modules/utils.sh (commit 3614b56). All verifications passed: shellcheck compliance, bash syntax check (bash -n), and BATS test suite passing cleanly. Symmetrically synchronized repository state across GitHub and Gitea.
This commit is contained in:
@@ -111,6 +111,15 @@ _write_classic_branch() {
|
||||
}
|
||||
|
||||
_branch_migration() {
|
||||
# Unattended guard: branch migration is the one operation
|
||||
# that can leave the system unbootable, so --yes alone is
|
||||
# not enough — it also requires --allow-destructive even
|
||||
# when every other prompt auto-accepts.
|
||||
if [ "${AUTO_YES:-0}" = "1" ] && [ "${ALLOW_DESTRUCTIVE:-0}" != "1" ]; then
|
||||
echo "Branch migration is destructive. Re-run with --allow-destructive, or drop --yes to confirm interactively." >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
# ── Screen 1: Risk warning ──
|
||||
_msg_red "WARNING: Branch Migration" \
|
||||
"Migrating from Debian Stable to Testing or SID is a\n\
|
||||
|
||||
Reference in New Issue
Block a user