Quiet dnf + live ASCII progress (recovered from orphaned PR #7) #8

Merged
yuri merged 4 commits from feat/quiet-dnf-recovered into main 2026-10-27 19:49:51 +01:00
Showing only changes of commit 0050f3a4a8 - Show all commits
+8
View File
@@ -103,6 +103,14 @@ if [[ ${EUID} -eq 0 ]]; then
exit 1 exit 1
fi fi
# Ask for the sudo password ONCE, up front, on a clean screen. Otherwise the
# first sudo call mid-run prints its prompt straight into the live progress
# line ("Installing (optional): gum[sudo] password for yuri:" — VM-proven).
# The timestamp refreshes on every subsequent sudo use, so one prompt covers
# the whole run.
info "Requesting sudo credentials (asked once for the whole run)..."
sudo -v
if [[ "$ASSUME_YES" == "true" && ( -z "$DE" || -z "$TWM" ) ]]; then if [[ "$ASSUME_YES" == "true" && ( -z "$DE" || -z "$TWM" ) ]]; then
err "--yes requires explicit --de and --twm, so nothing is guessed on an" err "--yes requires explicit --de and --twm, so nothing is guessed on an"
err "unattended run. Example:" err "unattended run. Example:"