mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 15:04:42 +00:00
feat: add spinner feedback to optimization tasks, enhance app discovery for uninstall, and improve UI robustness and signal handling
This commit is contained in:
@@ -319,10 +319,16 @@ perform_security_fixes() {
|
||||
}
|
||||
|
||||
cleanup_all() {
|
||||
stop_inline_spinner 2> /dev/null || true
|
||||
stop_sudo_session
|
||||
cleanup_temp_files
|
||||
}
|
||||
|
||||
handle_interrupt() {
|
||||
cleanup_all
|
||||
exit 130
|
||||
}
|
||||
|
||||
main() {
|
||||
local health_json
|
||||
for arg in "$@"; do
|
||||
@@ -340,7 +346,8 @@ main() {
|
||||
esac
|
||||
done
|
||||
|
||||
trap cleanup_all EXIT INT TERM
|
||||
trap cleanup_all EXIT
|
||||
trap handle_interrupt INT TERM
|
||||
|
||||
if [[ -t 1 ]]; then
|
||||
clear
|
||||
|
||||
Reference in New Issue
Block a user