1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 22:53:59 +00:00

Simpler and faster

This commit is contained in:
Tw93
2025-12-05 14:21:18 +08:00
parent 90cb4f84f2
commit 5761fd87c8
10 changed files with 166 additions and 159 deletions

View File

@@ -39,9 +39,9 @@ clean_orphaned_casks() {
true > "$cask_cache"
while IFS= read -r cask; do
# Get app path from cask info (expensive call, hence caching)
# Get app path from cask info with timeout protection (expensive call, hence caching)
local cask_info
cask_info=$(brew info --cask "$cask" 2> /dev/null || true)
cask_info=$(run_with_timeout 10 brew info --cask "$cask" 2> /dev/null || true)
# Extract app name from "AppName.app (App)" format in cask info output
local app_name