1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 16:49:41 +00:00

Well-structured output

This commit is contained in:
Tw93
2025-10-11 22:43:18 +08:00
parent 3b33c5a4a8
commit 55f6bd352f
7 changed files with 126 additions and 69 deletions

View File

@@ -501,7 +501,6 @@ uninstall_applications() {
done
# Show final summary
echo ""
echo -e "${PURPLE}▶ Uninstallation Summary${NC}"
if [[ $total_size_freed -gt 0 ]]; then
@@ -527,6 +526,11 @@ cleanup() {
leave_alt_screen
unset MOLE_ALT_SCREEN_ACTIVE
fi
if [[ -n "${sudo_keepalive_pid:-}" ]]; then
kill "$sudo_keepalive_pid" 2>/dev/null || true
wait "$sudo_keepalive_pid" 2>/dev/null || true
sudo_keepalive_pid=""
fi
show_cursor
exit "${1:-0}"
}