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

fix: Enhance sudo password input handling and expand tilde paths in maintenance.

This commit is contained in:
Tw93
2025-12-16 17:54:37 +08:00
parent 50806efc37
commit 019a0c63ff
3 changed files with 16 additions and 2 deletions

View File

@@ -100,6 +100,9 @@ fix_broken_login_items() {
program=$(plutil -extract ProgramArguments.0 raw "$plist_file" 2> /dev/null || echo "")
fi
# Expand tilde in path if present
program="${program/#\~/$HOME}"
# Skip if no program found or program exists
[[ -z "$program" ]] && continue
[[ -e "$program" ]] && continue