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

Repair brew clean very deeply

This commit is contained in:
Tw93
2025-11-22 08:43:30 +08:00
parent 8d969e41da
commit 5c4671fe3f

View File

@@ -917,8 +917,8 @@ perform_cleanup() {
brew_tmp_file=$(create_temp_file)
# Run brew cleanup in background with manual timeout
# Deep clean with -s --prune=all (default 2 minutes, configurable via MO_BREW_TIMEOUT)
(brew cleanup -s --prune=all > "$brew_tmp_file" 2>&1) &
# Clean old versions with --prune=all (default 2 minutes, configurable via MO_BREW_TIMEOUT)
(brew cleanup --prune=all > "$brew_tmp_file" 2>&1) &
local brew_pid=$!
local elapsed=0