refactor: best_effort log for quiet steps, registered temp dirs, one exit handler

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ss5gKj7XG5JPi27XwGBGTs
This commit is contained in:
theupriserandClaude Sonnet 5.5 committed 2026-10-03 12:52:59 +02:00
1 parent bc66eb2416
commit ef514e35af
17 files changed
+100 -42

No files matched your search

+8
View File
@@ -64,6 +64,14 @@ TARGET_USER="$(id -un)"
migrate_layout
notify_seen
# One exit handler (a second trap would replace it): the cursor the menu hid
# and the run's temp dirs, also when the run stops half way.
on_exit() {
[[ -t 1 ]] && tput cnorm 2>/dev/null
cleanup_tmpdirs
}
trap on_exit EXIT
restart_needed() { [[ -n "${BIOS_NEEDS_RESTART:-}" || "$RESTART_FOR_LOGIN" == true ]]; }
restart_now() {