1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-10 10:14:23 +00:00

feat: Bump version to 1.13.5, enhance show_version output, optimize software update checks, and add Touch ID for sudo as a security fix.

This commit is contained in:
Tw93
2025-12-17 11:56:39 +08:00
parent e363a67a10
commit a667a1a777
6 changed files with 138 additions and 349 deletions

View File

@@ -599,22 +599,20 @@ main() {
rm -f "$apps_file"
# Pause before looping back
echo -e "${GRAY}Press Enter to return to application list, ESC to exit...${NC}"
echo -e "${GRAY}Press Enter to return to application list, any other key to exit...${NC}"
local key
IFS= read -r -s -n1 key || key=""
drain_pending_input # Clean up any escape sequence remnants
case "$key" in
$'\e' | q | Q)
show_cursor
return 0
;;
*)
# Continue loop
;;
esac
drain_pending_input
# Reset force_rescan to false for subsequent loops,
# but relying on batch_uninstall's cache deletion for actual update
# Logic: Enter = continue loop, any other key = exit
if [[ -z "$key" ]]; then
: # Enter pressed, continue loop
else
show_cursor
return 0
fi
# Reset force_rescan to false for subsequent loops
force_rescan=false
done
}