mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
refactor: best_effort log for quiet steps, registered temp dirs, one exit handler
This commit is contained in:
1 parent
99f7fea4d1
commit
dd863a3402
17 files changed
+100
-42
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user