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

Fix handing issue on macOS Sequoia after completing 1 task (#291)

This commit is contained in:
Tw93
2026-01-11 08:11:43 +08:00
parent d45423df94
commit e186086578

5
mole
View File

@@ -81,6 +81,7 @@ check_for_updates() {
ensure_user_dir "$(dirname "$msg_cache")" ensure_user_dir "$(dirname "$msg_cache")"
ensure_user_file "$msg_cache" ensure_user_file "$msg_cache"
(
( (
local latest local latest
@@ -94,8 +95,8 @@ check_for_updates() {
else else
echo -n > "$msg_cache" echo -n > "$msg_cache"
fi fi
) & ) > /dev/null 2>&1 < /dev/null &
disown 2> /dev/null || true )
} }
show_update_notification() { show_update_notification() {